Why doesn't dismissWithClickedButtonIndex ever call clickedButtonAtIndex?

前端 未结 4 1328
梦谈多话
梦谈多话 2021-01-04 08:35

http://iphonedevelopment.blogspot.com/2009/02/alert-view-with-prompt.html

I\'m using that code to get my iPhone app to display an alertView with an included UITextFi

4条回答
  •  心在旅途
    2021-01-04 08:59

    clickedButtonAtIndex is called when user actually clicks the button. Clicking the button may or may not dismiss the alert. the standard OK/Cancel buttons have the effect of dismissing the alert on click. If a click translates to dismiss or a dismissWithClickedbuttonIndex method is called, then did DismissWithButtonIndex is called.

提交回复
热议问题