Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Want app upgraded to 4.0 to exit completely when home button pressed

I am working on an app for iOS 4.0. The app was originally on 2.2.1. I upgraded it to a universal app, but now it seems to be multitasking. When I press the menu button while running the app, instead of exiting it closes, but when I relaunch the app it resumes where I left off. I am assuming this is multitasking. I want it to exit, is there a way in the settings?

My guess is that the iPad target upgrade changed the plist somehow? Any thoughts?

like image 506
user396004 Avatar asked Jul 16 '10 19:07

user396004


2 Answers

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

like image 53
Jesse Naugher Avatar answered Oct 27 '22 01:10

Jesse Naugher


That's not multitasking, that's Fast app switching which is now the default and is preferred in iOS 4.0.

If you disable it, that means you app has to be reloaded every time the user switches to it instead of allowing it to stay in memory. It will take longer to reload it each time.

It would be better if you implement applicationWillEnterForeground: and refresh your view rather than force the user to have to wait while your app reloads.

like image 25
progrmr Avatar answered Oct 27 '22 00:10

progrmr