I have an iPhone OS app who's ViewController overrides shouldAutorotateToInterfaceOrientation so that only the two landscape orientations are supported. Then, there is (in my primary/main NIB) a UIScrollView that's landscape.
In my primary viewDidLoad, it appears that this UIScrollView is still 320x480. However, as I only load the initial couple of panels/areas of the scroll view (which I'm using as a pager, actually), it's later as a result of user action that I load the third page/panel/subview. When this loads, the scroll-view is 480x320, which is as it actually appears on screen anyway.
The problem I'm having is that the loading of a separate NIB for the contents of the pages in the scrollview is not working correctly when it's loaded for the first pages, but the later-loaded pages (which see the scrollview frame as 480x320) seem to work just fine.
I tried putting the "load the NIB into subviews" code inside of viewWillAppear and viewDidAppear, thinking that might be late enough, but the scrollview is still 320x480 at that point.
Any ideas how I can figure out when the scrollview has changed it's frame to match what it actually is on-screen?
Thanks.