Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I programatically close an iPad app?

Tags:

ipad

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?

like image 784
Don Grem Avatar asked Dec 21 '10 11:12

Don Grem


People also ask

How do I fully close an app?

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.

Why can't I close apps on iPad?

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.


1 Answers

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.

like image 147
Stephen Darlington Avatar answered Sep 30 '22 16:09

Stephen Darlington