iOS 4从后台恢复 [英] iOS 4 resume from background
问题描述
当用户打开应用程序时,可能会收到通知或其他内容,但应用程序在后台(因此未关闭)?
It is possible to get a notification or something when the user opens the application, but the application was in the background (so it wasn't closed)?
推荐答案
您的App Delegate将在返回之前调用其功能 applicationWillEnterForeground 。
Your App Delegate will have its function applicationWillEnterForeground called before coming back.
此外,操作系统将会如果在这些事件被解冻时冻结,则排队等待一系列重大操作系统更改的潜在通知,即: UIApplicationSignificantTimeChangeNotification 和 UIDeviceBatteryLevelDidChangeNotification
Also, the OS will have queued a series of potential notifications for significant OS changes if it were freeze dried when those events were fired, ie: UIApplicationSignificantTimeChangeNotification and UIDeviceBatteryLevelDidChangeNotification
这篇关于iOS 4从后台恢复的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!