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

标签 ios iphone notifications uilocalnotification

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

相关文章:

ios - 在前台 ios 应用程序中没有收到 FCM 消息

ios - 了解 NSUserDefaults 和 NSUserDefaultsDidChangeNotification

ios - 找不到名为的 Storyboard

ios - swift - UIImageWriteToSavedPhotosAlbum 导致 EXC_BAD_ACCESS

ios - Swift:searchBar - 如何更改 "Cancel"按钮标题

ios - 通过键盘应用程序或 iMessage 应用程序截取屏幕截图

iphone - 将 NSDate 值保存到 plist

iphone - Google 云端硬盘 SDK 和 iOS 5.1

android - 在 AOSP 上启用推送通知

没有 Notification 对象的 Android Beep 或 Light?