UIAlertViewDelegate clickedButtonAtIndex: usefulness?
Posted
by Ed Marty
on Stack Overflow
See other posts from Stack Overflow
or by Ed Marty
Published on 2010-03-22T16:47:59Z
Indexed on
2010/03/22
16:51 UTC
Read the original article
Hit count: 322
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
?
© Stack Overflow or respective owner