< p>
UIDeviceOrientationFaceUp,
UIDeviceOrientationFaceDown
By default, the interface orientation supported by apps and view controllers is set to UIInterfaceOrientationMaskAll of the iPad.
Either
Use UIApplicationDidChangeStatusBarFrameNotification instead of UIDeviceOrientationDidChangeNotification-from @Leon Comment.
I added an observer for UIDeviceOrientationDidChangeNotification, and the observer’s selector is orientationChanged : My app only supports left and right landscapes. If you rotate the iPad like a steering wheel, the selector will be called perfectly. But if you rotate the iPad like a scroll, it will be called when the iPad is almost flat The selector, but not flat, the selector will be called! How could it happen, someone encountered this problem?
I guess the observer when you scroll is called orientationChanged: there is one of these directions,
UIDeviceOrientationFaceUp,< br />UIDeviceOrientationFaceDown
By default, the interface orientation supported by the app and view controller is set to UIInterfaceOrientationMaskAll of the iPad.
Either
Use UIApplicationDidChangeStatusBarFrameNotification instead UIDeviceOrientationDidChangeNotification – from @Leon Comment.