Don't rotate to portrait and fix iOS 6 compatibility

This commit is contained in:
KentuckyCompass 2013-03-15 22:23:59 -07:00
parent b1108f3290
commit e530a306ec

View File

@ -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;