title: iOS - kill the app with a button?
body: <p>I have an app that runs for a while, but needs to be reset every day, because it's lifecycle is a bit different than most other apps. It seems that the easiest way to do this is to kill the app and re-launch it. </p>
  
  <p>I found a solution that kills the app when the home button is tapped:</p>
  
  <blockquote>
    <p>In your application's Info.plist, add a boolean key
    UIApplicationExitsOnSuspend with the value YES</p>
  </blockquote>
  
  <p>This is not something that I want to do. I need to give the user an option to kill/reset the app before it is used. I can certainly ask the user to double tap the home key and kill the app with a long press>x. Yet this is too complex for some users.</p>
  
  <p>Another simple solution would be to have a button do something crashworthy, like divide by 0, although I'm not sure if the app store would penalize my app for "crashing" every single day for all users.</p>
  
  <p><strong>Has anyone found a way to add an "exit" button to an iPhone app? In android, I could do system.exit(0), which worked. What's the iPhone alternative?</strong></p>