为什么调用cancelAllLocalNotifications会删除/清除通知中心?

时间:2011-11-02 07:10:45

标签: ios uilocalnotification notificationcenter

使用cancelAllLocalNotifications基本上应该cancel the delivery of all scheduled local notifications。但它继续并清除历史记录,因此通知中心不显示最近的1/5/10最近项目/通知。

我不确定这是一个错误还是故意的?

也许我应该使用cancelLocalNotification:来取消预定的本地通知(计划在将来启动)。但是这会对64本地通知限制产生影响吗?

1 个答案:

答案 0 :(得分:2)

我已将此报告为Apple的错误。也许这是故意的,也许不是。我最终使用的是cancelLocalNotification:而不是cancelAllLocalNotifications