When I press the Home button it doesn't fully close, but resides in 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?
Close one app: Swipe up from the bottom, hold, then let go. Swipe up on the app. Close all apps: Swipe up from the bottom, hold, then let go. Swipe from left to right.
1 Restart Your Device If you cannot swipe up to close apps after iOS update, just try to close an app is by force restarting.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With