是否有更简单的方法来编辑,例如,已安排的 UILocalNotification 的 alertBody 属性?
现在,我只是取消通知并安排一个新通知,但是当应用需要为 3 个或更多通知执行此操作时,执行需要很长时间...
最佳答案
如果文档是正确的,您就不能更改已经安排好的通知。 -scheduleLocalNotification:
的文档说明:
[…] Because the operating system copies notification, you may release it once you have scheduled it.
通知对象由系统复制,不能通过任何(公共(public))方法访问。所以除了取消通知之外别无他法。
关于ios - 有没有一种简单的方法来编辑/修改 UILocalNotification,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3842252/