PDA

View Full Version : Device Orientation and view modes




sujithkrishnan
Sep 23, 2009, 01:37 AM
Hi all,

I have created a tabbarcontroller based applciationwith 4 tabs and having respective navigation controllers.

I want to support both landscape mode and portrait mode in first tab's navigation controller, but not for the rest of tabs.

But i noticed/realized that the landscape mode (for just first tab) will work if and only if i support the landscape mode for all the root view controllers of all tabs, not just the first tab's navigationcontroller's root view controller.

How to restrict this behavior? I want the screen for rest all tabs to appear in portrait mode and first tab's screen in both landscape and portrait mode



robbieduncan
Sep 23, 2009, 04:14 AM
I assume you have sub-classes the tab view controller to provide the correct orientation method? If so just check which tab is visible and return the correct thing...