Is it possible to detect UI orientation is locked or not currently? If so, how can I do that?
I want to do something with gravity sensor when only UI orientation is not locked.
This inherited UIViewController method which can be overridden will be trigger every time the interface orientation will be change. Consequently you can do all your modifications in the latter. By implementing this method you'll then be able to react to any change of orientation to your interface.
Not possible unfortunately, the lock is handled by the OS and is transparent to the app.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With