Revert "[ios] Adaptive fullscreen in landscape by device orientation (#1862)" (#2043)

This reverts commit c9096d16f7.
This commit is contained in:
Jens Andersson 2020-06-09 12:35:18 +02:00 committed by GitHub
parent c9096d16f7
commit 2dd5025190
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -28,7 +28,7 @@
- (UIInterfaceOrientation)preferredInterfaceOrientationForPresentation { - (UIInterfaceOrientation)preferredInterfaceOrientationForPresentation {
if ([self.preferredOrientation.lowercaseString isEqualToString:@"landscape"]) { if ([self.preferredOrientation.lowercaseString isEqualToString:@"landscape"]) {
return UIInterfaceOrientationLandscapeLeft | UIInterfaceOrientationLandscapeRight; return UIInterfaceOrientationLandscapeRight;
} }
else if ([self.preferredOrientation.lowercaseString isEqualToString:@"portrait"]) { else if ([self.preferredOrientation.lowercaseString isEqualToString:@"portrait"]) {
return UIInterfaceOrientationPortrait; return UIInterfaceOrientationPortrait;