iPhone OS 4.0.x - 从后台过渡到前台 [英] iPhone OS 4.0.x - transition from background to foreground

查看:155
本文介绍了iPhone OS 4.0.x - 从后台过渡到前台的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

iPhone编程问题:

iPhone programming question:

是否可以通过编程方式将iPhone应用程序从后台模式唤醒/恢复到前台模式?

Is it possible to wakeup/resume iPhone application from background mode to foreground mode programmatically?

我有一个长期运行的后台任务,它正在UIApplicationDelegate的applicationDidEnterBackground方法中启动。

I have a long-running background task, which is being launched in applicationDidEnterBackground method of UIApplicationDelegate.

I需要使用此后台任务中的一些代码使我的应用程序处于活动/可见状态。

I need to make my application active/visible using some code inside this background task.

这可能吗?

谢谢。

推荐答案

这是不可能的。但是,您可以触发本地通知以提醒用户。

This is not possible. However, you can fire a local notification to alert the user.

这篇关于iPhone OS 4.0.x - 从后台过渡到前台的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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