UITabBarController and 'doAllViewControllersSupportInterfaceOrientation'
Hi Experts,
In my iPad app (iOS SDK 4.3), i have 3 tabs at the bottom - the first tab has a splitview controller with master and detail views, the second tab has another view and the 3rd tab also has a splitview controller with master and detail views..
I have dynamically created the SplitViewControllers and the tabs.
The tabs appear perfectly and i can switch views.
The issue is while changing from landscape to portrait mode...
If i display my Login view and then show the main view(with the tabs), then the UITabBarController does not invoke the event - 'doAllViewControllersSupportInterfaceOrientation' (Please see the stack in the attached image)
Thus auto-orientation between landscape and portrait does not work
However, If i perform an 'autologin' - that is i skip displaying my Login view and directly show the main view(with the tabs), then the UITabBarController does invoke the event - 'doAllViewControllersSupportInterfaceOrientation' (Please see the stack in the attached image) and the auto-orientation works beautifully!
Now I checked all the view controllers including the login viewcontroller and i have implemented the 'shouldAutorotateToInterfaceOrientation' and returned YES...
any pointers, why UITabBarController, does not invoke doAllViewControllersSupportInterfaceOrientation when i show my loginview?
|