Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/113.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ios 后台与UIApplicationWillEnterForegroundNotification中执行的通知顺序_Ios_Cocoa Touch_Nsnotificationcenter_Nsnotifications - Fatal编程技术网

Ios 后台与UIApplicationWillEnterForegroundNotification中执行的通知顺序

Ios 后台与UIApplicationWillEnterForegroundNotification中执行的通知顺序,ios,cocoa-touch,nsnotificationcenter,nsnotifications,Ios,Cocoa Touch,Nsnotificationcenter,Nsnotifications,我是否可以确定,当应用程序处于后台时(但由于应用程序处于后台,所以未执行),会触发一个通知,如 总是在 UIApplicationWillEnterForegroundNotification ? 我知道我不能依赖于通知的顺序,但这是一种特殊情况,在这种情况下,通知以前发生过,但在应用程序上线时执行 根据我的测试,NSSystemTimeZonedChangeNotification总是在UIApplicationWillEnterForegroundNotification之前执行,但不确定

我是否可以确定,当应用程序处于后台时(但由于应用程序处于后台,所以未执行),会触发一个通知,如

总是在

UIApplicationWillEnterForegroundNotification
?

我知道我不能依赖于通知的顺序,但这是一种特殊情况,在这种情况下,通知以前发生过,但在应用程序上线时执行

根据我的测试,
NSSystemTimeZonedChangeNotification
总是在
UIApplicationWillEnterForegroundNotification
之前执行,但不确定我是否能指望它

UIApplicationWillEnterForegroundNotification