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

fixie rider

macrumors newbie
Original poster
Sep 28, 2008
19
0
I'm trying to get my app to only work in landscape mode only. The UIInterfaceOrientation key seems to work fine on my device, but weird things happen in the simulator. It will start in landscape and then flip to portrait automatically.

Can anyone else confirm this?
 

jasonslater

macrumors newbie
Oct 10, 2008
2
0
I've managed to get this to work by adding this into my AppDelegate class (in the applicationDidLoad function):
[[UIApplication sharedApplication] setStatusBarOrientation: UIInterfaceOrientationLandscapeRight animated: YES];

And then rotate each of the views
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.