user349302
user349302

Reputation: 3811

iPhone Application Should Close, not go to Background

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

Upvotes: 5

Views: 2340

Answers (1)

James Huddleston
James Huddleston

Reputation: 8448

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.

Upvotes: 12

Related Questions