I have a view controller that is created via initWithNibName, and I just found out awakeFromNib is not called. Is awakeFromNib only called when the view controller is unarchived from the Nib? (that is, initWithCoder is called)
I think what you're looking for is viewDidLoad
. awakeFromNib
is only called on objects that are loaded from the nib. The controller itself receives viewDidLoad:
. Since you're calling initWithNibName:bundle:
, it's not actually unarchived from the nib!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With