alertView(_:willDismissWithButtonIndex:)
Sent to the delegate before an alert view is dismissed.
Declaration
optional func alertView(_ alertView: UIAlertView, willDismissWithButtonIndex buttonIndex: Int)Parameters
- alertView:
The alert view that is about to be dismissed.
- buttonIndex:
The index of the button that was clicked. The button indices start at
0. If this is the cancel button index, the alert view is canceling. If-1, the cancel button index is not set.
Discussion
This method is invoked before the animation begins and the view is hidden.