Protocol

UIPopoverPresentationControllerDelegate

The methods of the UIPopoverPresentationControllerDelegate protocol let you customize the behavior of a popover-based presentation. A popover presentation controller notifies your delegate at appropriate points during the presentation process. You can use the delegate methods to customize this process and respond to changes dynamically.

Declaration

@protocol UIPopoverPresentationControllerDelegate

Overview

After defining an object that adopts this protocol, assign that object to the delegate property of a UIPopoverPresentationController object. You must present a view controller using the UIModalPresentationPopover style before you can obtain such an object. For more information about popover presentation controllers, see UIPopoverPresentationController.

Topics

Presenting and Dismissing the Popover

- prepareForPopoverPresentation:

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

- popoverPresentationControllerShouldDismissPopover:

Asks the delegate if the popover should be dismissed.

Deprecated
- popoverPresentationControllerDidDismissPopover:

Tells the delegate that the popover was dismissed.

Deprecated

Repositioning the Popover

- popoverPresentationController:willRepositionPopoverToRect:inView:

Tells the delegate that UIKit needs to reposition the popover’s location.

See Also

Customizing the Popover Behavior

delegate

The delegate that handles popover-related messages.