Information:
Hardware lock on (via lock center)
App only supports portrait
Reason:
Adjusting orientation of images captured using AVCapture
i.e. when taking a picture in landscape, adjust it so it is shown portrait when displaying it.
AVCapture
is set to portrait (if set otherwise, the actual camera layer will rotate which is not intended).
If hardware lock is on (via control center), UIDeviceOrientation
AND UIInterfaceOrientation
always return portrait.
Is there a way (besides using the Accelerometer) to detect device orientation / tilt, without regarding the lock?