When are dynamically loaded NIBs assigned frames and bounds data?

Posted by thebossman on Stack Overflow See other posts from Stack Overflow or by thebossman
Published on 2010-05-03T05:38:35Z Indexed on 2010/05/03 5:48 UTC
Read the original article Hit count: 260

In one of my UIViewControllers, I am calling initWithNibName:bundle: for several other UIViewControllers. I am grabbing the view property in each of those dynamically created controllers and placing them, one after the other, in my parent view. For instance, the y offset of viewControllerB should be equal to the height of viewControllerA. The y offset of viewControllerC should be equal to the height of viewControllerB, and so on.

I am initalizing these nibs in viewDidLoad, yet none of them have any meaningful bounds or frame properties. The sizes and positions of each are all zero. Where is the 'correct' place to do this type of operation so that I can grab meaningful values from these properties?

© Stack Overflow or respective owner

Related posts about iphone

Related posts about objective-c