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>
<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.

Comments

Popular posts from this blog

NSPredicate Cheatsheet, Basic, compound, Aggregate, String, comparison operators

what is appDelegate?

CRUD Operation Using RealmSwift database Part 1