I am writing an app that loads 3 levels of UIViewControllers on start up. When the app launches the Window view and 1st sub view show just fine. The 2nd and 3rd views load but are not visible. When I rotate the simulator the 2nd and 3rd views display properly. Every subsequent rotation of the simulator shows the view properly. How can I get all the views to draw on app start?
I load the 1st UIController view by calling [window addSubview:firstViewController.view]. The first viewController then loads view via code the second viewController in the -loadView method. The second view controller then loads the 3rd view via code through a .xib file.
Any help would be appreciated.