iOS, Lock Screen to Portrait only

After googling for sometime looking the way to override the function of
UIViewController to prevent the autoRotation yet with no good answer.
Then the Apple developer documentation does states that one can edit from info.plist.

Opening the info.plist in XCode editor looks pretty but i was not be able to look at
the supported orientation list. And using Vim the list is presented in plain XML.
Looking at this line, UISupportedInterfaceOrientations
and leaving only

UIInterfaceOrientationPortrait

The application is no longer autorotate. Hurray ^^

Comments