Disable multitasking for your apps
Multi-tasking can be great, but there are times when I am developing that I need to test certain things and it really is more of a hassle than a positive thing. I now resort to using this as a quick easy way to disable multi-tasking and then I will enable it to test it again once the app is nearing completion.
There may be an argument for your app to keep it disabled and so far Apple don’t seem to be complaining if you use this. e.g. maybe your app is only a quick little one that doesn’t need to be held in memory.
This is a simple way to make your iOS 4 apps terminate for real when the user taps the home button:
- Open your info.plist file
- Add The Key UIApplicationExitsOnSuspend or Select Application does not run in background
- Set the new key to YES or Fill in the tick box
Now your applicationwillterminate: method will be run when the user taps the home key, and your app will exit for real.
information found via/ maniacdev.com
No related posts.
0 Comments