Instance Method

alertView:clickedButtonAtIndex:

Sent to the delegate when the user clicks a button on an alert view.

Declaration

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

Parameters

alertView

The alert view containing the button.

buttonIndex

The index of the button that was clicked. The button indices start at 0.

Discussion

The receiver is automatically dismissed after this method is invoked.