iPad Porting: word of advice
On the iPad you must support all device orientations as the device has no “natural” orientation.
Be ware that UIViewController by default only returns “Portrait” when asked. You should change it to:
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
return YES;
}
This is obvious stuff… but what threw me is that in 1 place in my code I use UIViewController *without* subcalssing it. So it wasn’t caught with my find/replace for that method. Anyway… lesson to be learnt, search for any UIViewController alloc’s. Easier approach just subclass UIViewController once, add that method and use it in any such cases.
Without doing this your iPad will refuse to rotate for the views in question resulting in several visual glitches. Even if you just flash it for a second, it will go haywire.
