iPhone 上隐藏的、不可取消的本地通知?

发布于 2024-09-08 07:53:16 字数 339 浏览 3 评论 0原文

在应用程序开发过程中,我创建了 2 个每天重复的本地通知(一个在早上,一个在晚上)。我试图通过致电取消它们(以及所有其他),

[[UIApplication sharedInstance] cancelAllLocalNotifications]

但它们仍然在预定时间发生。当我查询计划通知列表(通过 [[UIApplication sharedInstance] ScheduledLocalNotifications])时,列表为空。

我正在使用 OS4 的最终版本,并且我已经将其作为错误提交给 Apple。

还有其他人看过这个吗?

During app development, I created 2 local notifications that repeat every day (one in the morning and one in the evening). I am trying to cancel them (and all others) via a call to

[[UIApplication sharedInstance] cancelAllLocalNotifications]

but they are still occurring at the scheduled times. When I query for the list of scheduled notifications (via [[UIApplication sharedInstance] scheduledLocalNotifications]) the list is empty.

I am using the final release of OS4, and I submitted this as a bug to Apple already.

Has anyone else seen this?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

你不是我要的菜∠ 2024-09-15 07:53:16

是的,我以前也遇到过这种情况,通知每秒都会重复!
只需重启手机就可以了。

Yea, it happened to me before with the notifications repeating every second!!!
Just reboot your phone and it'll be okay.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文