Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想在 Objective-C 中编写 UIlocalNotification 的关闭按钮
无法访问关闭按钮操作。
调度后LocalNotification成为系统事件,所以只能访问视图事件,调用didReceiveLocalNotification()方法。
LocalNotification
didReceiveLocalNotification()
以下示例显示了如何访问视图事件,如上所述:
- (void)application:(UIApplication *)application didReceiveLocalNotification:(UILocalNotification *)notification