Sent to the delegate when the user clicks a button on an alert view.
- iOS 2.0–9.0Deprecated
- Mac Catalyst 13.0–13.0Deprecated
The alert view containing the button.
The index of the button that was clicked. The button indices start at
The receiver is automatically dismissed after this method is invoked.