How can I detect if UI orientation is locked or not on iOS?

Viewed 2404

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.

2 Answers
Related