Send app to background on button tap

回眸只為那壹抹淺笑 提交于 2019-12-24 09:38:54

问题


In my apps there is a button named "Back". When the user clicks on that button, the apps should be sent to the background, like when we click on the home button.


回答1:


Even if you manage to do this, it is against Apple's HIG (because it will look as a crash to the user) - if you plan to publish your app on the AppStore you'll be rejected.




回答2:


I think turning to background is impossible.

Make user press home button by using UIAlertView with no cancel button.




回答3:


We can send an application to the background using SpringBoardUI or the SpringBoardServices private frameworks.

However, Apple won't accept this on the App Store.



来源:https://stackoverflow.com/questions/7551433/send-app-to-background-on-button-tap

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!