Contents

show(from:in:animated:)

Displays an action sheet that originates from the specified view.

Declaration

func show(from rect: CGRect, in view: UIView, animated: Bool)

Parameters

  • rect:

    The portion of view from which to originate the action sheet.

  • view:

    The view from which to originate the action sheet.

  • animated:

    Specify True to animate the presentation of the action sheet or False to present it immediately without any animation effects.

Discussion

On iPad, this method displays the action sheet in a popover whose arrow points to the specified rectangle of the view. The popover does not overlap the specified rectangle.

See Also

Presenting the action sheet