The UIAlertViewDelegate
protocol defines two methods, alertView:clickedButtonAtIndex:
and alertView:didDismissWithButtonIndex:
, which seem to me to be identical in usefulness.
Why is there a clickedButtonAtIndex
and a didDismissButtonWithIndex
when they both do the same thing? I realize there is also a willDismissButtonWithIndex
that happens before the alert view is dismissed, but is there any reason to use clickedButtonAtIndex
instead of didDismissButtonWithIndex
?