|
|
@ -13,12 +13,12 @@ NS_ASSUME_NONNULL_BEGIN
|
|
|
|
|
|
|
|
|
|
|
|
BOOL IsLandscapeOrientationEnabled(void)
|
|
|
|
BOOL IsLandscapeOrientationEnabled(void)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
return NO;
|
|
|
|
return UIDevice.currentDevice.isIPad;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
UIInterfaceOrientationMask DefaultUIInterfaceOrientationMask(void)
|
|
|
|
UIInterfaceOrientationMask DefaultUIInterfaceOrientationMask(void)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
return (IsLandscapeOrientationEnabled() ? UIInterfaceOrientationMaskAllButUpsideDown
|
|
|
|
return (IsLandscapeOrientationEnabled() ? UIInterfaceOrientationMaskAll
|
|
|
|
: UIInterfaceOrientationMaskPortrait);
|
|
|
|
: UIInterfaceOrientationMaskPortrait);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|