title: ApplicationWillTerminate in iOS 4.0
body: <p>The applicationWillTerminate delegate method is not getting called in iOS 4.0
   When I hit the Home button I am seeing the applicationWillResignActive and applicationDidEnterBackground delegate methods getting called.</p>
  
  <pre><code> - (void)applicationWillResignActive:(UIApplication *)application
  {
    NSLog(@"Application Did Resign Active");
  }
  
  - (void)applicationDidEnterBackground:(UIApplication *)application
  {
    NSLog(@"Application Did Enter Background");
  }
  </code></pre>
  
  <p>And when I double Tap the Home button and again launch the Application the i find the applicationWillEnterForeground and applicationDidBecomeActive delegate methods are getting called.</p>
  
  <pre><code> - (void)applicationWillEnterForeground:(UIApplication *)application
  {
    NSLog(@"Application Will Enter Foreground");
  }
  
  
  
  - (void)applicationDidBecomeActive:(UIApplication *)application
  {
    NSLog(@"Application Did Become Active");
  }
  </code></pre>
  
  <p>But I want to know when the applicationWillTerminate delegate method will be called , where I do some DB/file backup routines.</p>
  
  <pre><code>- (void)applicationWillTerminate:(UIApplication *)application{
  
  }
  </code></pre>
  
  <p>I even tried to hit the minus sign and deleted the App running in the Background , but still it did not call any delegate method.</p>
  
  <p>Any Ideas ???</p>