Contents

alertView(_:didDismissWithButtonIndex:)

Sent to the delegate after an alert view is dismissed from the screen.

Declaration

optional func alertView(_ alertView: UIAlertView, didDismissWithButtonIndex buttonIndex: Int)

Parameters

  • alertView:

    The alert view that was 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 after the animation ends and the view is hidden.

See Also

Customizing behavior