Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IOS 12 crashing when calling Orientation.lockToLandscape() #282

Open
facugu1998 opened this issue Dec 8, 2023 · 2 comments
Open

IOS 12 crashing when calling Orientation.lockToLandscape() #282

facugu1998 opened this issue Dec 8, 2023 · 2 comments

Comments

@facugu1998
Copy link

facugu1998 commented Dec 8, 2023

When we call Orientation.lockToLandscape() in iOS 12 the app crashes and throws the following error: "Supported orientations has no common orientation with the application, and [UIViewController shouldAutorotate] is returning YES".

When debugging, the exception happens after executing this line:

[[UIDevice currentDevice] setValue:[NSNumber numberWithInteger: UIInterfaceOrientationLandscapeRight] forKey:@"orientation"];

This does not happen in newer versions of iOS.

Has anyone faced this problem? Thanks in advance.

@mubashirjabbar
Copy link

@facugu1998 Did you get a chance to solve this issue?

@facugu1998
Copy link
Author

@facugu1998 Did you get a chance to solve this issue?

We had to set minimum version of ios to 13.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants