问题
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