I am looking for an alternative view for one of my ViewControllers when the user rotates the device in the landscape (think CoverFlow on iPod). I implemented this using AlternateViews example code (listening for device rotation notification).
However, I noticed an error. I have a rather complicated interface - TabViewController / UINavigationController. When on one ViewController that uses AlternateViews code and switches to another tab, which also has AlternateView, it looks like notifications are competing. This means that it will display an AlternateView, but one that is not the second for the first tab view controller. If I go back from the navigation hierarchy so that there is only one AlternateView, then that's fine.
In the end, I don't need a completely separate ViewController for landscape mode. In fact, this actually complicates the situation, as I need it to have the same navigation bar and IBActions . I need to load into the UIWebView while rotating the device (if it is not already loaded) and hide the current view (UITableView). This will also alleviate the error above.
I can configure the code to create / show / hide UIWebView and UITableView. However, I donβt know exactly where and when to do it - willAutoRotateToOrientation ? It would be helpful to get any reference to the delegate method and psuedo code.
Of course, if someone has a fix for AlternateViews example code, given my user interface hierarchy, I would appreciate it.
source share