Forcing Landscape Orientation on IPhone
Posted by Tres Mon, 06 Apr 2009 18:59:00 GMT
This is pretty easy, but it’s also easy to mistake setting default orientation with the ability to display in multiple orientations via the call to shouldAutorotateToInterfaceOrientation in your view controller.
To force your app into a landscape view on start, use info.plist to define the default orientation. Define the key UIInterfaceOrientation and the value UIInterfaceOrientationLandscapeLeft or UIInterfaceOrientationLandscapeRight