iPad – UIDeviceorientationDidChangeNotification

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 turning the steering wheel, The selector will be called perfectly. But if you rotate the iPad like a scroll, the selector will be called when the iPad is almost flat, but not flat, the selector will be called! How could it happen, someone encountered this problem?
I guess the observer is called orientationChanged when you scroll: there is one of these directions,

< 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.

WordPress database error: [Table 'yf99682.wp_s6mz6tyggq_comments' doesn't exist]
SELECT SQL_CALC_FOUND_ROWS wp_s6mz6tyggq_comments.comment_ID FROM wp_s6mz6tyggq_comments WHERE ( comment_approved = '1' ) AND comment_post_ID = 976 ORDER BY wp_s6mz6tyggq_comments.comment_date_gmt ASC, wp_s6mz6tyggq_comments.comment_ID ASC

Leave a Comment

Your email address will not be published.