Sunday, May 22, 2011

iOS App Development Fundamentals

Objective-C
  1. 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/
  2. 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.
  1. View Controller Basics
    http://developer.apple.com/library/ios/#featuredarticles/ViewControllerPGforiPhoneOS/AboutViewControllers/AboutViewControllers.html#//apple_ref/doc/uid/TP40007457-CH112-SW10
  2. 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
  3. Fundamental Design Pattern
    http://developer.apple.com/library/ios/#DOCUMENTATION/iPhone/Conceptual/iPhone101/Articles/02_DesignPatterns.html#//apple_ref/doc/uid/TP40007514-CH10-SW1
  4. Cocoa Design Pattern
    http://developer.apple.com/library/ios/#DOCUMENTATION/Cocoa/Conceptual/CocoaFundamentals/CocoaDesignPatterns/CocoaDesignPatterns.html#//apple_ref/doc/uid/TP40002974-CH6-SW6
  5. Creating a Working Nib File With Interface Builder
    http://iphone-obsessed.blogspot.com/2009/02/creating-working-nib-file-with.html


Some ideas:
  1. In IB, File's Owner, First Responder and Delegate are all proxy objects, not real!

Tips:

  1. 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