clickedButtonAtIndex method is not called

后端 未结 2 762
执念已碎
执念已碎 2021-01-26 01:47

when the user click on a button on the UIAlertView the clickedButtonAtIndex method is supposed to be called, however, it doesn\'t :

in the

相关标签:
2条回答
  • 2021-01-26 02:41

    delegate:nil is the problem. Pass self as the delegate to initWithTitle:message:delegate:cancelButtonTitle:otherButtonTitles:.

    0 讨论(0)
  • 2021-01-26 02:54

    You're passing nil as the delegate argument. Pass self instead.

    0 讨论(0)
提交回复
热议问题