How can I programatically close an iPad app?
When I press the Home button it doesn't fully close, but resides i开发者_StackOverflow社区n memory. I would like to restart an app from scratch and not keep its latest state.
How can I programatically close when the home button is pressed?
To get your app to close when the home button is pressed you need to add an entry for UIApplicationExitsOnSuspend
to your Info.plist
. This causes the app to revert to pre-4.0 behaviour which is as you describe.
精彩评论