Landscape orientation.
This commit is contained in:
parent
a0bf2717ac
commit
7654d05417
|
@ -946,6 +946,11 @@ static NSTimeInterval launchStartedAt;
|
|||
- (UIInterfaceOrientationMask)application:(UIApplication *)application
|
||||
supportedInterfaceOrientationsForWindow:(nullable UIWindow *)window
|
||||
{
|
||||
if (self.windowManager.hasCall) {
|
||||
// The call-banner window is only suitable for portrait display
|
||||
return UIInterfaceOrientationMaskPortrait;
|
||||
}
|
||||
|
||||
if (!window) {
|
||||
// If `window` is nil, be permissive. Otherwise orientation
|
||||
// gets messed up during presentation of windows.
|
||||
|
@ -960,11 +965,6 @@ static NSTimeInterval launchStartedAt;
|
|||
return UIInterfaceOrientationMaskPortrait;
|
||||
}
|
||||
|
||||
if (self.windowManager.hasCall) {
|
||||
// The call-banner window is only suitable for portrait display
|
||||
return UIInterfaceOrientationMaskPortrait;
|
||||
}
|
||||
|
||||
return UIInterfaceOrientationMaskAllButUpsideDown;
|
||||
}
|
||||
|
||||
|
|
|
@ -540,6 +540,13 @@ typedef void (^CustomLayoutBlock)(void);
|
|||
[self updateVerificationStateLabel];
|
||||
}
|
||||
|
||||
#pragma mark - Orientation
|
||||
|
||||
- (UIInterfaceOrientationMask)supportedInterfaceOrientations
|
||||
{
|
||||
return UIInterfaceOrientationMaskPortrait;
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
||||
|
|
|
@ -246,6 +246,13 @@ NS_ASSUME_NONNULL_BEGIN
|
|||
[super dismissViewControllerAnimated:animated completion:completion];
|
||||
}
|
||||
|
||||
#pragma mark - Orientation
|
||||
|
||||
- (UIInterfaceOrientationMask)supportedInterfaceOrientations
|
||||
{
|
||||
return UIInterfaceOrientationMaskPortrait;
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
||||
|
|
Loading…
Reference in New Issue