In my iOS 8 generic app, I present a popover using the UIPopoverPresentationController , as shown below, from prepareForSegue :
FavoriteNameViewController *nameVC = segue.destinationViewController; UIPopoverPresentationController *popPC = nameVC.popoverPresentationController; popPC.delegate = self;
And with this delegate method.
- (UIModalPresentationStyle)adaptivePresentationStyleForPresentationController:(UIPresentationController *)controller { return UIModalPresentationNone; }
In this particular case, I present a view controller that looks like a warning, but it is not.

Now my problem is that the user can click outside of this popover and it will be rejected. There is no real problem, except that warnings do not work, and I would like this to emulate a warning.
I see that UIPopoverControllerDelegate had a method called popoverControllerShouldDismissPopover: but UIPopoverPresentationControllerDelegate does not have this method, and I believe I need to use the latter.
source share