Instance Method

dismissPopoverAnimated:

Dismisses the popover programmatically.

Declaration

- (void)dismissPopoverAnimated:(BOOL)animated;

Parameters

animated

Specify YES to animate the dismissal of the popover or NO to dismiss it immediately.

Discussion

You can use this method to dismiss the popover programmatically in response to taps inside the popover window. Taps outside of the popover’s contents automatically dismiss the popover.

See Also

Presenting and Dismissing the Popover

- presentPopoverFromRect:inView:permittedArrowDirections:animated:

Displays the popover and anchors it to the specified location in the view.

Deprecated
- presentPopoverFromBarButtonItem:permittedArrowDirections:animated:

Displays the popover and anchors it to the specified bar button item.

Deprecated