Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

sujithkrishnan

macrumors 6502
Original poster
May 9, 2008
265
0
Bangalore
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
 
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...
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.