iPhone dev memoramda #2

4 gennaio 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.

Go top