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

[TIMOB-25942] : iOS 11: Screen orientation not working in navigation window #10104

Merged
merged 4 commits into from Sep 27, 2018

Conversation

vijaysingh-axway
Copy link
Contributor

@build
Copy link
Contributor

build commented Jun 13, 2018

Messages
📖

💾 Here's the generated SDK zipfile.

Generated by 🚫 dangerJS

Copy link
Collaborator

@hansemannn hansemannn left a 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];
Copy link
Collaborator

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.

Copy link
Collaborator

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?

@hansemannn hansemannn added this to the 7.4.0 milestone Jun 13, 2018
@vijaysingh-axway
Copy link
Contributor Author

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.

@build
Copy link
Contributor

build commented Sep 26, 2018

Messages
📖

💾 Here's the generated SDK zipfile.

Generated by 🚫 dangerJS

@hansemannn hansemannn merged commit 863fae6 into tidev:master Sep 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants