title: Show Alert in clickedButtonAtIndex?
body: <p><br>
  i need to show a confirm alert after the user press <code>buttonIndex 1</code> but... if i use <code>popViewcontroller</code> in <code>clickedButtonAtIndex</code> it crash without errors.  </p>
  
  <p>The problem is that  </p>
  
  <pre><code>[self.navigationController popViewControllerAnimated:YES];
  </code></pre>
  
  <p>is called before second Alert click...</p>
  
  <p>how to fix?</p>
  
  <p>This is my code:</p>
  
  <pre><code>- (void) alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex {
      if (buttonIndex == 1) {
          UIAlertView *alert = 
              [[UIAlertView alloc] initWithTitle:@"OK!"
                                      message:@"Completed"
                                      delegate:self 
                      cancelButtonTitle:@"OK" otherButtonTitles:nil, nil];
              [alert show]; 
              [alert release];
  
              [self.navigationController popViewControllerAnimated:YES];
      }
  }
  </code></pre>