title: iPhone - How to catch if the app is terminated (to update the badge icon)
body: <p>I'm setting :</p>
  
  <pre><code>- (void)applicationWillTerminate:(UIApplication *)application
  {
      [UIApplication sharedApplication].applicationIconBadgeNumber = 1;
  }
  </code></pre>
  
  <p>in my application delegate but the badge is never updated... What can be the problem ? </p>
  
  <p><strong>How may I do to update that badge when the app is killed (phone shutdown, taskbar app kill, app killed by the system because of a memory overload, ...) ?</strong></p>