update supported iOS orientations

This commit is contained in:
Justin R. Miller
2014-04-10 11:28:43 -07:00
parent 27e33ef8b8
commit 9f5a313e37
2 changed files with 5 additions and 6 deletions

View File

@@ -31,6 +31,8 @@
<key>UISupportedInterfaceOrientations</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
<key>UISupportedInterfaceOrientations~ipad</key>
<array>

View File

@@ -162,12 +162,9 @@ class MBXMapView
}
}
- (BOOL)shouldAutorotate {
return YES;
}
- (NSUInteger)supportedInterfaceOrientations {
return UIInterfaceOrientationMaskAll;
- (NSUInteger)supportedInterfaceOrientations
{
return ([[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPad ? UIInterfaceOrientationMaskAll : UIInterfaceOrientationMaskAllButUpsideDown);
}
-(void)viewWillLayoutSubviews {