applicationWillTerminate problem
<p>I want to show the UIAlertView when user Click the Iphone Home button( means Close the application)</p>

<p>I have done these Code</p>

<pre><code>- (void)applicationWillTerminate:(UIApplication *)application
{
    NSString *errorString =@"Testing";

    UIAlertView * errorAlert = [[UIAlertView alloc] initWithTitle:@"Alert" message:errorString delegate:nil cancelButtonTitle:@"OK" otherButtonTitles:nil];
    [errorAlert show];
    [errorAlert release];
}
</code></pre>

<p>But UIAlertView is not Showing. please help</p>

<p>Thanks in Advance</p>
