Portrait orientation only for iPad?

ipad, orientation, portrait, xcode

Solution

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);

Problem

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

Original source