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.
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 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.
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.
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."
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With