iOS 4从后台恢复

Inf*_*ies 2 iphone objective-c multitasking

当用户打开应用程序时,可能会收到通知或其他内容,但应用程序是在后台(因此它没有关闭)?

Aar*_*ron 5

您的App Delegate将在返回之前调用其函数applicationWillEnterForeground.

此外,如果在触发这些事件时冻结了操作系统,操作系统将排除一系列潜在的重大操作系统更改通知,即:UIApplicationSignificantTimeChangeNotificationUIDeviceBatteryLevelDidChangeNotification