Portrait orientation only for iPad?

NextRev picture NextRev · Apr 27, 2010 · Viewed 10.7k times · Source

According to apple my application has to be able to run in both portrait modes. How do I accomplish this with shouldAutorotateToInterfaceOrientation??

Answer

kennytm picture kennytm · Apr 27, 2010

Just return YES no matter what the interface orientation is. This will allow the system autorotate to the upside-down orientation.

If you don't want to support the landscape orientations, then return:

return UIInterfaceOrientationIsPortrait(interfaceOrientation);