Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iOS5 Storyboard UIViewController which init method is called by the storyboard?

Which init method is called by the storyboard for UIViewControllers added to the storyboard?

like image 560
Alex Stone Avatar asked Jan 07 '12 00:01

Alex Stone


2 Answers

The initializer used is initWithCoder:

- (id)initWithCoder:(NSCoder *)decoder

Then afterwards you will also get an awakeFromNib message.

like image 101
Firoze Lafeer Avatar answered Nov 10 '22 04:11

Firoze Lafeer


I believe it is awakeFromNib

like image 45
agilityvision Avatar answered Nov 10 '22 03:11

agilityvision