Under the Bridge

Tip: Quit In iOS4

So there’s certain classes of apps for which being backgrounded under iOS4 is more trouble than it’s worth; and if you’re wishing you could have the old school behaviour back and to Hades with this multitasking thing, here’s the trick

Fortunately there is a simple way to make your iOS 4 apps terminate for real when the user taps the home button.

This is a simple process:

1. Open your info.plist file

2. Add The Key UIApplicationExitsOnSuspend

3. Set the new key to YES

Now your applicationwillterminate: method will be run when the user taps the home key, and your app will exit for real.

Now you know!

1