I can get the UIDeviceOrientationDidChangeNotification event if auto-rotation is set.
But when automatic screen rotation is turned off, the orientation notification no longer works.
The effect I want to achieve is the iPhone camera and camera +: no matter which user blocks or does not block the rotation of the screen, the application can correspond to a change in rotation immediately and correctly.
Does anyone know why a notification is not sent when the user blocks the screen rotation? How can I match the change in device orientation, even if auto-rotation is turned off?
Ray ling
source share