Friday, August 15, 2008

How To force Orientation to Landscape in iPhone

This is how to force Orientation to Landscape in iPhone.


AppDelegate.m : Select all

application.statusBarOrientation = UIInterfaceOrientationLandscapeRight;


Info.plist : Select all

<key>UIStatusBarOrientation</key>
<string>UIInterfaceOrientationLandscapeRight</string>

1 comment:

Anonymous said...

The problem with this is that it does not rotate the active views along with the status bar. Is this a bug that will be fixed in a later SDK?