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

mtgred

macrumors newbie
Original poster
Mar 30, 2008
11
0
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:
<key>UIInterfaceOrientation</key>
<string>UIInterfaceOrientationLandscapeRight</string>

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 ?
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.