Sent to the delegate before an alert view is canceled.
- iOS 2.0–9.0Deprecated
- Mac Catalyst 13.0–13.0Deprecated
The alert view that will be canceled.
If the alert view’s delegate does not implement this method, clicking the cancel button is simulated and the alert view is dismissed. Implement this method if you need to perform some actions before an alert view is canceled. An alert view can be canceled at any time by the system—for example, when the user taps the Home button. The
alert methods are invoked after this method.