Everything is fine and the method “shouldAutorotateToInterfaceOrientation” gets called for standard orientations like portrait, portrait-down, landscaperight and landscapeleft. However, I have noticed that it’s not get called on orientations that is when iphone is lying on the table face down or face up. In my code [UIDevice currentDevice].orientation returns some values like 5 and 6 for that but, as I said, the rotation event method isn’t called for those orientations. Am I missing something?
Everything is fine and the method shouldAutorotateToInterfaceOrientation gets called for standard orientations like portrait,
Share
As you can see the orientations are interface orientations, not device orientations.
You may want to take a look at: Reading the accelerometer