In the XCode4.2 + iOS5 SDK, I set the āOrientation of the supported deviceā to āPortraitā only. I expect that all views in the application will only support the portrait orientation. However, while I rotate the iPhone simulator, I found that other orientations still work.
It seems that the shouldAutorotateToInterfaceOrientation method in the ViewController is the key to deciding whether this orientation is supported. So, why set the āSupported device setupā parameter at the application level if it does not limit the orientation?
source share