Displays an action sheet that originates from the specified view.
SDKs
- iOS 2.0–8.3Deprecated
- Mac Catalyst 13.0–13.0Deprecated
Framework
- UIKit
Declaration
func show(in view: UIView)
Parameters
view
The view from which the action sheet originates.
Discussion
The appearance of the action sheet is animated.
On iPad, this method centers the action sheet in the middle of the screen. Generally, if you want to present an action sheet in an iPad application, you should use the show(from:
method to display the action sheet instead.