Ask a Question
Advertise on boostr.in
what is the best way to detect orientation in an app extension using -'ios,orientation,ios8,screen-orientation,ios-app-extension'
what is the best way to detect orientation in an app extension ¬†using -'ios,orientation,ios8,screen-orientation,ios-app-extension'
What is the best way to detect a device's orientation in an application extension? I have had mixed results with solutions I've found on here:
How to detect Orientation Change in Custom Keyboard Extension in iOS 8?
Get device current orientation (App Extension)
I have looked at size classes and UITraitCollection and found that the device inaccurately reports that it is in portrait when it is in fact in landscape (not sure if this is OS bug, or I am not querying the right APIs the right way).
What is the best method for accomplishing:
The device's current orientation when the extension is first loaded
The orientation the device will rotate to
The orientation the device did rotate to
Sep 7, 2015
to add a comment.
Your name to display (optional):
Email me at this address if my answer is selected or commented on:
Email me if my answer is selected or commented on
Privacy: Your email address will only be used for sending these notifications.
To avoid this verification in future, please