clickedButtonAtIndex method is not called

后端 未结 2 815
执念已碎
执念已碎 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:.

提交回复
热议问题