Instance Method

dismiss(animated:)

Dismisses the popover programmatically.

Declaration

func dismiss(animated: Bool)

Parameters

animated

Specify true to animate the dismissal of the popover or false 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

func present(from: CGRect, in: UIView, permittedArrowDirections: UIPopoverArrowDirection, animated: Bool)

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

Deprecated
func present(from: UIBarButtonItem, permittedArrowDirections: UIPopoverArrowDirection, animated: Bool)

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

Deprecated