views:

43

answers:

1

Hello

I have an application which when the user taps central iphone's 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 an configuration setting to deny running in the background?

thank you

+8  A: 

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.

James Huddleston