Instance Method

alertView:didDismissWithButtonIndex:

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

Declaration

- (void)alertView:(UIAlertView *)alertView didDismissWithButtonIndex:(NSInteger)buttonIndex;

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

- alertViewShouldEnableFirstOtherButton:

Sent to the delegate to determine whether the first non-cancel button in the alert should be enabled.

Deprecated
- willPresentAlertView:

Sent to the delegate before a model view is presented to the user.

Deprecated
- didPresentAlertView:

Sent to the delegate after an alert view is presented to the user.

Deprecated
- alertView:willDismissWithButtonIndex:

Sent to the delegate before an alert view is dismissed.

Deprecated