Device Orientation and view modes

Discussion in 'iOS Programming' started by sujithkrishnan, Sep 22, 2009.

  1. sujithkrishnan macrumors 6502

    May 9, 2008
    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
  2. robbieduncan Moderator emeritus


    Jul 24, 2002
    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...

Share This Page