将App发送到后台进程 [英] Send App to Background process

查看:120
本文介绍了将App发送到后台进程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们不想使用exit(0)来关闭应用程序,但我们确实希望允许应用程序以编程方式进入后台并按照允许此操作的用户进行处理。有没有办法以编程方式将应用程序发送到后台而不退出?模拟主页按钮的点击?

We do not want to use exit(0) to make the app close, we do however want to allow the app to go to background programmatically and process away, per users allowing this action. Is there a way to send the app to the background programmatically without exit? Simulating the click of the home button?

提前感谢!

推荐答案

不可能。主页按钮点击进入私人 GSEvents 框架。它是 exit()或者不幸。

Not possible. Home button clicks run into the private GSEvents framework. It's exit() or none unfortunately.

这篇关于将App发送到后台进程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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