iPhone 上隐藏的、不可取消的本地通知?
在应用程序开发过程中,我创建了 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
是的,我以前也遇到过这种情况,通知每秒都会重复!
只需重启手机就可以了。
Yea, it happened to me before with the notifications repeating every second!!!
Just reboot your phone and it'll be okay.