【发布时间】:2011-06-16 09:02:30
【问题描述】:
我需要知道用户是否在跳板设置中更改了系统时间。这样可以通知我的后台程序。根据 doc,NSSystemClockDidChangeNotification 是一种选择。
但我无法收到任何东西:
[[NSNotificationCenter defaultCenter] addObserver:self
selector:@selector(handleSysTimeChanged:)
name:NSSystemClockDidChangeNotification
object:nil];
我哪里错了?有什么建议吗?
【问题讨论】:
-
我需要你的帮助,只是我需要知道这个 handleSysTimeChanged 观察者方法确实在应用程序处于后台时被调用的天气吗?
标签: iphone time notifications system