开发者

Send app to background on button tap

开发者 https://www.devze.com 2023-04-08 05:08 出处:网络
In my apps there is a button named \"Back开发者_StackOverflow\". When the user clicks on that button, the apps should be sent to the background, like when we click on the home button.Even if you manag

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


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.


I think turning to background is impossible.

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


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号