cocoa touch - Does Interface Builder use the -init method to initialize view controllers? -


I have setup tab bar controller using the interface builder, and each tab bar item has been linked to a view controller (4 tabs, see 4 controls) I want to know that the interface builder uses a -init method to initialize the view controller because apparently this method is not called: / P>

  - (id) initWithNibName :( NSSTING *) Nominee Ornel Bundle: (NSBandal *) Negotiated Orion;  

... and I want to do some initial work. I can not add it to -viewDidLoad because it is remembered in case of memory warning any thoughts?

A * loaded objects. (Nib | xib) is included with:

  - (id) initWithCoder: (NSCoder *) coder;  

So you can override it or the problem can not be used after setting you up after -initWithCoder: :

  - (zero) awakening;  

From the NSNibAwaking Protocol.


Comments