Disable multitasking support in iOS 4 app

You can disable multitasking in iOS 4+ app just by adding a ‘UIApplicationExitsOnSuspend’ key in your info.plist file.

Multitasking support is enabled by default in all iOS 4+ application. There can be situations where you need to disable this support (if you don’t want your app to run in background).
You can disable multitasking in iOS 4+ app just by adding a key in your info.plist file.

You just need to add this following key (right click on your info.plist file and open as plain text file) –

<key>UIApplicationExitsOnSuspend</key>
	<true/> 

If you are using visual editor to edit info.plist file the just click on “+” button and add ‘UIApplicationExitsOnSuspend’ key and press tab key and select the check mark.

Leave a Reply

Your email address will not be published. Required fields are marked *