I know the SDK documentation says
Taps outside of the popover’s contents automatically dismiss the popover.
But I\'m sure the s
There is a very simple and legit solution. In the view controller that presents your UIPopoverController
, conform to the UIPopoverControllerDelegate
protocol and implement the following delegate method. I just tested this and it does prevent popover to dismiss.
- (BOOL)popoverControllerShouldDismissPopover:(UIPopoverController *)popoverController
{
return NO;
}
Just make sure that you have set the delegate of your popover controller to the view controller that implements this.
You can dismiss the popover by using [popoverController dismissPopoverAnimated:NO];
method.