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

newtoiphonesdk

macrumors 6502a
Original poster
Jul 30, 2010
567
2
I have an app with a custom movie player in it. I am having a problem. If you hold the device in landscape mode when it starts the status bar is in correct spot. If you rotate to portrait, it moves to portrait and will stay there even if you go back to landscape. How can I fix it where it is only landscape since that is how the movie player is set up?

Here is the code I have for making the status bar start at landscape How do I keep it there
Code:
[[UIApplication sharedApplication] setStatusBarOrientation:UIInterfaceOrientationLandscapeRight animated:NO];
 
Last edited:
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.