Want app upgraded to 4.0 to exit completely when home button pressed
Asked Answered
G

2

5

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?

Gentility answered 16/7, 2010 at 19:25 Comment(0)
A
13

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

Assr answered 16/7, 2010 at 19:26 Comment(2)
Thanks, it works! I see you copy and pasted this from here maniacdev.com/2010/07/…, but still THANKS!Gentility
That's developer.apple.com/library/ios/#documentation/iPhone/… @jsumners no tinyurls on stackoverflow pleaseAirla
D
5

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.

Damalas answered 16/7, 2010 at 20:2 Comment(1)
Oo cool. Didn't know that was the fast app switching, I'll look into it. Thanks for the suggestion, bug the app I'm working on is security sensitive, so we would rather have it exit than save the settings (haven't implemented a log out feature, yet).Gentility

© 2022 - 2024 — McMap. All rights reserved.