Instance Method

popoverPresentationControllerShouldDismissPopover:

Asks the delegate if the popover should be dismissed.

Declaration

- (BOOL)popoverPresentationControllerShouldDismissPopover:(UIPopoverPresentationController *)popoverPresentationController;

Parameters

popoverPresentationController

The popover presentation controller that is managing the popover interface.

Return Value

YES if the popover should be dismissed or NO if it should not.

Discussion

The popover presentation controller calls this method in response to user-initiated attempts to dismiss the popover. It is not called when you dismiss the popover programmatically using the dismissModalViewControllerAnimated: method.

If you do not implement this method in your delegate, the default return value is assumed to be YES.

See Also

Presenting and Dismissing the Popover

- prepareForPopoverPresentation:

Notifies the delegate that the popover is about to be presented.

- popoverPresentationControllerDidDismissPopover:

Tells the delegate that the popover was dismissed.

Deprecated