Tag Archives: obscure

Obscure iPhone: viewDidLoad and loadNibNamed

Quick tip. Sometimes, instead of traditional nib loading, you may want to use the following method: [[NSBundle mainBundle] loadNibNamed:@”MyViewController” owner:self options:options]; For instance, if you want to provide a runtime replacement for proxy object in your nib (see UINibExternalObjects). If you do this and you also need to perform setup after the nib loads, you’ll [...]