Instance Method

presentPopoverFromRect:inView:permittedArrowDirections:animated:

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

Declaration

- (void)presentPopoverFromRect:(CGRect)rect inView:(UIView *)view permittedArrowDirections:(UIPopoverArrowDirection)arrowDirections animated:(BOOL)animated;

Parameters

rect

The rectangle in view at which to anchor the popover window.

view

The view containing the anchor rectangle for the popover.

arrowDirections

The arrow directions the popover is permitted to use. You can use this value to force the popover to be positioned on a specific side of the rectangle. However, it is generally better to specify UIPopoverArrowDirectionAny and let the popover decide the best placement. You must not specify UIPopoverArrowDirectionUnknown for this parameter.

animated

Specify YES to animate the presentation of the popover or NO to display it immediately.

See Also

Presenting and Dismissing the Popover

- presentPopoverFromBarButtonItem:permittedArrowDirections:animated:

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

Deprecated
- dismissPopoverAnimated:

Dismisses the popover programmatically.

Deprecated