iOS 4 resume from background

China☆狼群 提交于 2019-12-02 03:43:26

问题


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)?


回答1:


Your App Delegate will have its function applicationWillEnterForeground called before coming back.

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



来源:https://stackoverflow.com/questions/3531014/ios-4-resume-from-background

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!