Don Grem
Don Grem

Reputation: 1267

How can I programatically close an iPad app?

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?

Upvotes: 8

Views: 70431

Answers (1)

Stephen Darlington
Stephen Darlington

Reputation: 52575

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.

Upvotes: 16

Related Questions