将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.