As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 9 years ago.
I'm looking for some good information on subclassing. I've really been looking into subclassing for interface design purposes, and for example went through a tutorial on subclassing UIAlertView to achieve a different look, but I would like to find more information on subclassing as a general techinque. I think being able to subclass any UI-based element of an objective c application (such as UIButton, UIToolbar, UITabBar
Etc) would really improve me as a developer. So, any links or publications you guys think I should check out would be great! :D
Subclassing is a great thing to get comfortable with because once you get proficient at it implementing custom controls becomes very easy.
Each class has different caveats for subclassing, so you really need to read the docs for each class. It also helps to read through the header files for the class (not on my mac right now but I think you can right click a class name and it will have an option to show you the header) as they usually have good information in there about subclassing.
I would also recommend looking at the Cocoa Controls Website. I think all of the controls on there have the source code available so you can see the techniques that people are using.
Related
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
Are there any MVVM frameworks for Objective-C that are widely used on iOS (iPhone/iPad)?
I'm a .net developer who has just started with iOS (read tutorials, done a couple of simple test apps), and from first perspective iOS's MVC looks to me pretty much like WinForms (correct me please if I'm wrong). WinForms "evolved" to WPF with MVVM, making Separation of Concerns way easier.
Are there something similar to MVVM for iOS? In the MonoTouch world I saw at least mvvmcross applying MVVM. What about Objective-C? Or generally there's no need for this in iOS world?
MvvmCross relies heavily on reflection, and on public c# properties and events. I did look at the idea of trying to extend the framework into objC and uikit, but really the structure of its function/selector API didn't seem to lend itself nicely to the databinding part of mvvm
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 9 years ago.
So after having read a few different Big Nerd Ranch texts, as well as seen Paul Haddad of Tweetbot fame more or less say that he doesn't use Interface Builder, I've come to the conclusion that for one reason or another, there's something wrong with it?
I personally find myself gravitating toward Interface Builder solely due to my background with Visual Basic. It's easier, it's faster, and just (for me) far more pleasant to work with.
In the end, though, my question is this: Is there some reason due to efficiency (either through performance of the final app or in the development process) that developers gravitate toward programmatically designed UI's over the Interface Builder-generated counterpart?
Thank you.
Interface Builder can be fiddly at times, and until recently you couldn't do anything remotely complex with it in terms of laying out UI elements relative to one another. Since you'd have to dip down to code to do that, many people just do everything in code.
However, with the advent of AutoLayout and its amazing integration with Interface Builder, that may change.
I personally feel that you can manage your code better by coding the UI yourself.
Interface builders can be used to build GUIs quickly, and allows you to experiment without having to know the intricate details of all the GUI components supported by your pl.
Best approach would be to mix these two approaches, build quickly using the interface builder, then move the code around as you like.
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 11 years ago.
hello a noob question here. I am not sure if I will be able to explain my question correctly, so please bear with me.
I'd like to know if there is a (free, or inexpensive) solution to help visualize (or present to someone) what's happening in a iOS application. Things like what happens first (things initialized, defaults loaded, views drawn etc) then what happens when certain things get touched (buttons, sliders) what happens when certain situations occur. These type of things.
Something like a flowchart, but perhaps cooler with the ability to code snippets, notes, pictures or anything that could help with the visualization. Something like CodeDrawer (which is C/C++ only) but for iOS applications. I'm hoping someone knows what I'm trying to get across here.
cheers
Rad
Structure101 has now support for Objective-C. This would maybe worth a try?
http://scitools.com/blog/2012/01/objective-c-support.html
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
I am in need of an outline on teaching VB6/VBA to some co-workers. The material I am pretty confident I can fill in, just need a sense of how to order the class material. Its not going to be hard core programming [nix the VB6 jokes please :) ] but do want to touch the basics. Any free outlines or even entire presentations out there that I can use? I've been looking but nothing concrete so far.
thanks
If you mean VBA say VBA, not VB6. They differ a great deal based on the object models available, and the actual language syntax is a fairly simple thing to pick up.
Just look for some Dummies, O'Reilly, etc. books to use as a teaching guide. Maybe even go with self-study making yourself available for questions and general help, and to prod them along.
Well I went to the public library and found a book called "Visual Basic In Easy Steps". that seems to have a good outline and it covers VB6 and VBA. Straight and simple.
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 9 years ago.
I'd like to create a flowchart/map visualization of how my project works, what is the best software available for this purpose? I'm not looking for something to do it automatically, I'd like to manually create the flowchart.
This is for a project done in Objective-C if that helps/matters.
OmniGraffle is pretty good. It even creates class diagrams from an Xcode 3.x project.
Other web applications that do this, that are not already mentioned:
draw.io, is free and uses Google Drive or Dropbox for storage (including Google Drive Realtime). I co-founded this.
Lucidchart is native JavaScript, like draw.io.
Creately and Cacoo are Flash implementations, although Cacoo are moving away from Flash.
Aside from my obvious bias, I would suggest Lucidchart or Gliffy (mentioned above).
If you (a) like gliffy and (b) want a desktop-based app that does the same thing, take a look at yEd. Supports BPMN and traditional flowcharts (as well as myriad other drawing notations). Nice and easy to use, cross-platform. Oh, and free :-)
hth.