如何检测按下本地通知关闭按钮

问题描述:

我想在Objective-C中编写UIlocalNotification的关闭按钮代码目标C如何检测按下本地通知关闭按钮

无法访问关闭按钮操作。

调度LocalNotification后它成为一个系统事件,所以只能访问视图事件,调用didReceiveLocalNotification()方法。

下面的示例示出了如何访问视图事件,如上面解释的:

- (void)application:(UIApplication *)application 
     didReceiveLocalNotification:(UILocalNotification *)notification