iPhone dev memoramda #2

Tuesday January 4th, 2011

View controllers can load a view from a nib with

-(id) initWithNibName:bundle:

OR

-(void) loadView

. They CAN’T be used at the same time. Setup happening just once should occur in

-(void) loadDidLoad

but beware: bounds data are not yet set. Otherwise

-(void) viewWillAppear

should be’ used.

Leave a reply

Your email address will not be published. Required fields are marked *

Go top