UIAlertViewDelegate protocol 定义的
The "alertView:clickedButtonAtIndex:" is called when the user clicks a button on an alert view whereas the "alertView:didDismissWithButtonIndex:" is called after an alert view is dismissed from the screen. (see theUIAlertViewDelegate Protocol Reference)
When showing a
UIAlertView, and the device goes to sleep,
alertView:didDismissWithButtonAtIndex: gets called, even though the alert view is not actually dismissed. It is shown again once the device wakes up.
alertView:clickedButtonAtIndex: is only called when the user clicks one of the buttons.
嘿嘿 多个alertview 用settag 然后在事件中检测即可