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
[TIMOB-25942] : iOS 11: Screen orientation not working in navigation window #10104
Conversation
Generated by 🚫 dangerJS |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One change required. Also, please make sure to test this on split-windows and different devices as well. Also, test using our kitchensink-v2 sample and larger sample apps.
fromOrientation:[[UIApplication sharedApplication] statusBarOrientation]]; | ||
if ([TiUtils isIOS11OrGreater]) { | ||
forcingStatusBarOrientation = YES; | ||
[[UIApplication sharedApplication] setStatusBarOrientation:target animated:NO]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This method is deprecated in iOS 9+, we should use a wrapper to use the iOS 10+ API for newer devices.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@vijaysingh-axway Can you add the [TiUtils isLowerThan:@"12.0"]
(or how the method was named) check to only add this workaround for iOS 11?
Apple has deprecated setStatusBarOrientation method in iOS9+ and haven't given any direct method to set status bar orientation. Need to check some different way to do this. |
Generated by 🚫 dangerJS |
https://jira.appcelerator.org/browse/TIMOB-25942