laughsky commented on issue #100:
URL: 
https://github.com/apache/cordova-plugin-screen-orientation/issues/100#issuecomment-1283780648

   if use xcode 13,the following is better:
   ```
   if (@available(iOS 16.0, *)) {
       #if __IPHONE_OS_VERSION_MAX_ALLOWED > __IPHONE_15_5
           SEL supportedInterfaceSelector = 
NSSelectorFromString(@"setNeedsUpdateOfSupportedInterfaceOrientations");
           [self.viewController performSelector:supportedInterfaceSelector];
       #endif
   } else {
       [UINavigationController attemptRotationToDeviceOrientation];
   }
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to