Does awakeFromNib get called right after viewController is allocated and initialized?
At what precise point does the awakeFromNib of a view controller get called?
From my debugging session, I see that awakeFromNib for the rootViewController doesn’t get called until [self.window makeKeyAndVisible] is executed.
Does awakeFromNib get called right after viewController is allocated and initialized? At what precise
Share
awakeFromNibgets called after the view and its subviews were allocated and initialized. It is guaranteed that the view will have all its outlet instance variables set.EDIT: A detailed recount of events:
Source
EDIT 2: This doesn’t apply to view controllers loaded from storyboards.