iOS 4从后台恢复 [英] iOS 4 resume from background

查看:88
本文介绍了iOS 4从后台恢复的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆