actionSheet(_:clickedButtonAt:)
Sent to the delegate when the user clicks a button on an action sheet.
Declaration
optional func actionSheet(_ actionSheet: UIActionSheet, clickedButtonAt buttonIndex: Int)Parameters
- actionSheet:
The action sheet containing the button.
- buttonIndex:
The position of the clicked button. The button indices start at
0.
Discussion
The receiver is automatically dismissed after this method is invoked.