【发布时间】:2014-05-29 07:16:00
【问题描述】:
我正在使用UILocalNotification 对象向我的应用程序发出通知。目前每次生成事件时,我都会弹出一个通知。
notification.alertBody=@"Event Occurs 2";
notification.alertAction=@"Open";
[[UIApplication sharedApplication]presentLocalNotificationNow:notification];
但是,由于事件不断发生,每次都会生成新的通知。
如果通知已经存在,有没有办法更新通知,如果不存在,则创建新通知。
【问题讨论】:
标签: ios objective-c uilocalnotification