Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to disable fast application switching (multitasking) on iOS 4?

In iOS 4, when a user presses the Home button, the running app will save the current state and go to background. However I'm developing an app and I don't want it to go to the background. I want it to kill itself, just like in iOS 3 and before. How can I do it? Thanks.

like image 648
backspacer Avatar asked Nov 09 '10 20:11

backspacer


People also ask

How do I disable the app switcher on my iPhone?

Answer: A: As stated in this article, Switch between apps on iPad - Apple Support. To turn off the multifinger swipe gesture, go to Settings > Home Screen & Dock > Multitasking.

How do I enable multitasking on my iPhone?

How to enable multitasking on iPhone. To enable multitasking on iPhone, go to Settings – Home Screen & Dock – Multitasking, where you can toggle multitasking on or off.

How do you force quit an app on iPhone 11?

Force Closing Apps Once you're in the app switcher, swipe sideways until you find the target app, then swipe up on its app card to force-close it. Repeat for any other app you wish to close, then swipe up from the bottom to go back to the home screen.


1 Answers

See "Opting Out of Background Execution" in the iOS Application Programming Guide:

"...you can explicitly opt out of the background execution model by adding the UIApplicationExitsOnSuspend key to your application’s Info.plist file and setting its value to YES."

like image 113
Joshua Nozzi Avatar answered Nov 09 '22 23:11

Joshua Nozzi