gpt4 book ai didi

ios - 有没有一种简单的方法来编辑/修改 UILocalNotification

转载 作者:IT王子 更新时间:2023-10-29 08:19:13 24 4
gpt4 key购买 nike

是否有更简单的方法来编辑,例如,已安排的 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/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com