dismissing a UIAlertView programmatically

后端 未结 5 1578
孤城傲影
孤城傲影 2021-02-13 17:12

I need help on dismissing a UIAlertView programmatically. Currently I have this

UIAlertView *alert1 = [[UIAlertView alloc]initWithTitle:@\"title\" message:@

5条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-02-13 17:39

    The methods you called is correct.
    I guess the alert1 is nil when your call the method dismissWithClickedButtonIndex:animated:
    Try to check your variable alert1.

提交回复
热议问题