我在我的AppDelegate中设置了一个重要的时间更改通知为[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(timeChange) name:UIApplicationSignificantTimeChangeNotification object:nil];
当我在手机上手动更改日期时,即使我将应用程序带到前台,也不会调用timeChange
功能。
我也尝试了- (void)applicationSignificantTimeChange:(UIApplication *)application
方法,但也没有被调用。
我在这里做错了吗?