diff --git a/ios/ViewController.mm b/ios/ViewController.mm index 95fa5b4fc2..2f154fafec 100644 --- a/ios/ViewController.mm +++ b/ios/ViewController.mm @@ -138,9 +138,16 @@ ViewController* sharedViewController; [super dealloc]; } +// For iOS before 6.0 - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation { - return YES; + return UIInterfaceOrientationIsLandscape(toInterfaceOrientation); +} + +// For iOS 6.0 and up +- (NSUInteger)supportedInterfaceOrientations +{ + return UIInterfaceOrientationMaskLandscape; } //static BOOL menuDown = NO;