I have an application wherein when the user taps iPhone's central button, the application is sent to background, but I want it to be closed.
I can hand event and close it, but may be there is some configuration setting to deny running in the background?
Thank you
Here's how to kill background apps on Android: Go to Settings > Apps. Select an app you want to stop, then tap Force Stop. The app will relaunch when you restart your phone.
In fact, when you force an app to close on your iPhone, it will not only slow down your app experience but will also use up more battery life. That's because, once an app is closed completely, it needs to re-launch and reload all of its resources the next time you open the app.
It is a common belief that you should close apps running in background to improve performance and save battery life. Unfortunately, this is a myth that is not true in almost all situations.
If you want your app to terminate when the user presses the home button, set the value of UIApplicationExitsOnSuspend
to YES
in your app's Info.plist
file. If you do this, when the user taps the home button the applicationWillTerminate:
method of your app delegate will be called and then your application will terminate.
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