ViewDidLoad, awakeFromNib, initWithCoder: ... Where to initialize participants?

Just a simple question ... I am using Interface Builder to create my view, and I wonder where I should initialize the UIViewController member variables (which are not IBOutlets) ... viewDidLoad? awakeFromNib? initWithCoder:

Thank you for your responses!

+3
source share
1 answer

Use awakeFromNibif you need to do something extra with your IB exits before the view actually loads (so at the time of publication, the NIB loads), otherwise you can initialize member variables to viewDidLoad:

, nib.

, , Apple -, ; , .

+2

All Articles