- If you have understanding in C language and OO design, this is a wonderful quick introduction to all basics of Obj-C you need to know:
http://cocoadevcentral.com/d/learn_objectivec/ - If you need to go further and have time, see this (chinese version)
http://www.otierney.net/objective-c.html.zh-tw.big5
Xcode and Interface Builder
- Most of the time, in iOS app development, you deals with different views, controllers and nib/xib files. It is important to know what they are at the beginning.
- View Controller Basics
http://developer.apple.com/library/ios/#featuredarticles/ViewControllerPGforiPhoneOS/AboutViewControllers/AboutViewControllers.html#//apple_ref/doc/uid/TP40007457-CH112-SW10 - Resource Programming Guides - Nib File, File's Owner, Delegate Object
http://developer.apple.com/library/ios/#DOCUMENTATION/Cocoa/Conceptual/LoadingResources/CocoaNibs/CocoaNibs.html#//apple_ref/doc/uid/10000051i-CH4-SW8 - Fundamental Design Pattern
http://developer.apple.com/library/ios/#DOCUMENTATION/iPhone/Conceptual/iPhone101/Articles/02_DesignPatterns.html#//apple_ref/doc/uid/TP40007514-CH10-SW1 - Cocoa Design Pattern
http://developer.apple.com/library/ios/#DOCUMENTATION/Cocoa/Conceptual/CocoaFundamentals/CocoaDesignPatterns/CocoaDesignPatterns.html#//apple_ref/doc/uid/TP40002974-CH6-SW6 - Creating a Working Nib File With Interface Builder
http://iphone-obsessed.blogspot.com/2009/02/creating-working-nib-file-with.html
Some ideas:
- In IB, File's Owner, First Responder and Delegate are all proxy objects, not real!
Tips:
- To get the screen size
- float w = self.view.frame.size.width;
- CGRect rect = [[UIScreen mainScreen] bounds];
NSLog(@"The height is %f", rect.size.height);
No comments:
Post a Comment