Search code examples
cocoa-touchiosuiapplicationdelegate

Quit app instead of entering background when receiving applicationDidEnterBackground


I wonder if it's possible to quit my program entirely after the user presses the Home button, rather than going into background run mode. Thanks.


Solution

  • In your application's Info.plist, add a boolean key UIApplicationExitsOnSuspend with the value YES. See the Information Property List Key Reference for more information.