Invocation of ViewDidLoad after initWithNibName

Posted by live2dream95 on Stack Overflow See other posts from Stack Overflow or by live2dream95
Published on 2010-04-19T22:21:37Z Indexed on 2010/04/19 22:23 UTC
Read the original article Hit count: 353

Filed under:
|

It appears that ViewDidLoad() is sent to a ViewController only after its View is physically displayed (i.e. via NavigationController pushViewController), and not immediately after initWithNibName(). Is this a behavior I can rely on? I would like to get the chance to set the member variables of my view so that all the members are valid by the time ViewDidLoad() is invoked.

© Stack Overflow or respective owner

Related posts about cocoa-touch

Related posts about iphone