UIDeviceOrientation
provides information about the physical device itself, and UIInterfaceOrientation
- about the orientation of the displayed views. They must not match; when the user uses orientation lock or device orientation face up.
You probably want to check UIInterfaceOrientation
rotation methods on UIViewController
to determine whether they were scanned or should be rotated.
source
share