title: When will applicationWillTerminate be called?
body: <p>In what situations will applicationWillTerminate be called? For example, will it ocassionally be called if there is a crash in the code?</p>
  
  <p>Apple's doc is vague on this, it only says when the system needs to terminate it for some reason.</p>
  
  <blockquote>
    <p>For apps that do not support background execution or are linked
    against iOS 3.x or earlier, this method is always called when the user
    quits the app. For apps that support background execution, this method
    is generally not called when the user quits the app because the app
    simply moves to the background in that case. However, this method may
    be called in situations where the app is running in the background
    (not suspended) and the system needs to terminate it for some reason.</p>
  </blockquote>