开发者

Tips for Rapid iPhone/iPad Development

For my job, I've been writing an iPad application that the user can enter data into, view some pictures, etc. It's been annoying me that I'm reaaaallly slow at writing in Obj-C and I find myself bogged down in the UI (an example would be I always have to put in a UITableView which is time consuming...) I think that I have a pretty good handle on the language and Apple SDK.

Does anyone have any tips regarding how to speed up the development process from a UI perspective? Are there alternative tools to xCode and IB? Are there libraries with clas开发者_StackOverflow中文版ses that are faster to program w/? Anything is appreciated,

mj


Interface Builder can already speed up your development considerably if you learn to use it. For example, see this custom table cell with IB tutorial.

For example, at my current employer I've seen a Cocoa Mac OS X app where the settings dialog was done completely in IB... there was no code for modifying or sync'ing the values in the NSUserDefaults with the interface elements, everything was done in IB.

Also, see this interesting article: Striking the Balance: Interface Builder vs. Code.


Avoid UITableViewController if you aren't already.

For speeding up TableView dev, I always keep a pretty generic implementation of TableView handy that I can copy and paste snippets from.

If you are constantly doing TableViews for different object types, try using Protocols to make the implementations more uniform.

Don't be afraid of UIViews as subviews as opposed to constantly using UIViewControllers. Sometimes a VC is just an extra layer of complexity that you don't need.

My experience is that the biggest thing you can do as an iPhone developer to become more efficient is to know when and when not to use Controllers as opposed to Views when doing complex interfaces.

Wish I could be more specific but your question is a little vague... there's nothing wrong with Interface Builder, it's just a steep learning curve.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜