Disable multitasking support in iOS 4 app - Online Free Computer Tutorials.

'Software Development, Games Development, Mobile Development, iOS Development, Android Development, Window Phone Development. Dot Net, Window Services,WCF Services, Web Services, MVC, MySQL, SQL Server and Oracle Tutorials, Articles and their Resources

Friday, May 4, 2012

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) –


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

I guess you came to this post by searching similar kind of issues in any of the search engine and hope that this resolved your problem. If you find this tips useful, just drop a line below and share the link to others and who knows they might find it useful too. 

Stay tuned to my blogtwitter or facebook to read more articles, tutorials, news, tips & tricks on various technology fields. Also Subscribe to our Newsletter with your Email ID to keep you updated on latest posts. We will send newsletter to your registered email address. We will not share your email address to anybody as we respect privacy.

[iOS Development][iPhone Development][Objective C Programming]


No comments:

Post a Comment