Saturday, 2 March 2013

Disable multitasking support in iOS 4 app

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>

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.

No comments:

Post a Comment