Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/objective-c/22.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ios 在didReceiveLocalNotification中以编程方式关闭UIAlertview_Ios_Objective C_Uialertview_Uilocalnotification - Fatal编程技术网

Ios 在didReceiveLocalNotification中以编程方式关闭UIAlertview

Ios 在didReceiveLocalNotification中以编程方式关闭UIAlertview,ios,objective-c,uialertview,uilocalnotification,Ios,Objective C,Uialertview,Uilocalnotification,我正在iOS 7.1中开发一个包含UILocalNotification的应用程序。当我的通知发出时,它将转到AppDelegate didReceiveLocalNotification委托方法。当时,我的所有屏幕关闭,进入通知屏幕[我为通知视图设计的]UIAlertView除外 如果我将UIAlertView与委托自身一起使用,则在按下通知屏幕中的alertView按钮时,它将崩溃 那么,当我收到通知时,如何以编程方式解除UIAlertView呢 请帮助我存档此文件。若要以编程方式取消此文件

我正在iOS 7.1中开发一个包含UILocalNotification的应用程序。当我的通知发出时,它将转到AppDelegate didReceiveLocalNotification委托方法。当时,我的所有屏幕关闭,进入通知屏幕[我为通知视图设计的]UIAlertView除外

如果我将UIAlertView与委托自身一起使用,则在按下通知屏幕中的alertView按钮时,它将崩溃

那么,当我收到通知时,如何以编程方式解除UIAlertView呢


请帮助我存档此文件。

若要以编程方式取消此文件,请使用以下命令:

[alert dismissWithClickedButtonIndex:0 animated:YES];