I developed an iPad app which supports only portrait mode and in the app I show a UIPopoverController.
My problem is that if the user hols the iPad in landscape mode and tried to launch the UIPopoverController is it showed "correctly" as if the app supports landscape instead of being showed on its side.
Is there a open the UIPopoverController in as in portrait mode even though it is opened in landscape mode, or simply block the landscape support?
I have tried telling it to support portrait only
Code:
- (BOOL) shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
// Return YES for supported orientations
return (interfaceOrientation == UIInterfaceOrientationPortrait);
}
but it simply ignored my request.
Thanks
Roi