在后台应用时重新启动iOS应用程序而无需用户界面? [英] Relaunch iOS app without user interface when application in background?

查看:111
本文介绍了在后台应用时重新启动iOS应用程序而无需用户界面?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在后台应用程序时重新启动没有用户界面的iOS应用程序?

how to relaunch iOS app without user interface when application in background?

我知道通知但在任何通知中用户必须单击警报视图按钮才能重新启动或打开应用程序。

I know notification but in any notification user must click alert view button to relaunch or open app.

推荐答案

你不能像其他人一样说过。你可以做背景的东西,但这在各方面都有限:

You can't, as everyone else has said. You can do background stuff though, but this is limited in various ways:


对于iOS应用程序,了解你的应用程序是否至关重要在
前景或背景中运行。由于iOS设备上的系统资源限制为
,因此应用程序在
背景中的行为必须与前景不同。操作系统还限制了你的应用程序在后台可以做的
,以便提高电池续航时间并改善用户使用前台应用程序的体验。
操作系统会在
前景和后台之间移动时通知您的应用。这些通知是您
修改应用行为的机会。

For iOS apps, it is crucial to know whether your app is running in the foreground or the background. Because system resources are more limited on iOS devices, an app must behave differently in the background than in the foreground. The operating system also limits what your app can do in the background in order to improve battery life and to improve the user’s experience with the foreground app. The operating system notifies your app whenever it moves between the foreground and background. These notifications are your chance to modify your app’s behavior.

- http://developer.apple.com/library/ios/#documentation/iphone/conceptual /iphoneosprogrammingguide/ManagingYourApplicationsFlow/ManagingYourApplicationsFlow.html

这篇关于在后台应用时重新启动iOS应用程序而无需用户界面?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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