Use default supported rotations when none are specified
This commit is contained in:
parent
2853b6b629
commit
bc570b22bf
@ -173,7 +173,7 @@ namespace
|
||||
|
||||
NSArray *supportedOrientations = [[NSBundle mainBundle] objectForInfoDictionaryKey:@"UISupportedInterfaceOrientations"];
|
||||
if (!supportedOrientations)
|
||||
return false;
|
||||
return (1 << orientation) & [rootViewController supportedInterfaceOrientations];
|
||||
|
||||
int appFlags = 0;
|
||||
if ([supportedOrientations containsObject:@"UIInterfaceOrientationPortrait"])
|
||||
|
@ -55,14 +55,6 @@
|
||||
////////////////////////////////////////////////////////////
|
||||
- (BOOL)shouldAutorotate;
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
/// \brief Returns the supported orientations (iOS >= 6)
|
||||
///
|
||||
/// \return A combination of all the supported orientations
|
||||
///
|
||||
////////////////////////////////////////////////////////////
|
||||
- (NSUInteger)supportedInterfaceOrientations;
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
// Member data
|
||||
////////////////////////////////////////////////////////////
|
||||
|
@ -46,12 +46,4 @@
|
||||
return self.orientationCanChange;
|
||||
}
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
- (NSUInteger)supportedInterfaceOrientations
|
||||
{
|
||||
return UIInterfaceOrientationMaskAll;
|
||||
}
|
||||
|
||||
|
||||
@end
|
||||
|
Loading…
Reference in New Issue
Block a user