Starting an application in landscape mode

Discussion in 'iOS Programming' started by mtgred, Aug 27, 2008.

  1. mtgred macrumors newbie

    Mar 30, 2008
    Brussels, Belgium
    I would like to start a application in lanscape mode.

    For that a new key has been added to the info.plist file:

    With the new key the application indeed starts in landscape mode. However once a ViewController's view is added to the main window, the application reverts back to portrait mode.

    This is probably due to the fact that ViewControllers have their own UIInterfaceOrientation property which is different then the UIInterfaceOrientation of the Application.

    Is there a workaround to prevent the view to revert back to portrait when using a ViewController ?

Share This Page