我在我的 AppDelegate 中设置了一个重要的时间更改通知 [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(timeChange) name:UIApplicationSignificantTimeChangeNotification object:nil];
timeChange当我在手机上手动更改日期时,即使将应用程序置于前台,也不会调用该函数。
我也尝试过- (void)applicationSignificantTimeChange:(UIApplication *)application方法,但也没有被调用。
我在这里做错了吗?
| 归档时间: |
|
| 查看次数: |
1296 次 |
| 最近记录: |