title: UIAlertViewDelegate not acting as expected
body: <p>I have a very simple process running where after each round of a simple game the scores are calculated, labels updated and all the normal, very simple stuff. I have a UIAlertView that informs the player of how s/he performed. I use a UIAlertViewDelegate to postpone all the updates, resetting of controls etc. till after the UIAlertView is dismissed. The methods are [startNewRound],[startOver] and [updateLabels]. It's fairly obvious what they all do. Anyway, when the user hits round ten, I've made another UIAlertView that informs the player that the game has ended and shows the overall score. Again, I hoped to use a delegate to postpone the resets till after the AlertView is dismissed. The only problem is, with the endGame AlertView, it seems to be using the first AlertView's delegate method causing the game to continue with a new round and not start from the beginning. I hope this makes sense. Anyway, here are snippets of my code.</p>
  
  <pre><code>if (round == 10){
      UIAlertView *endGame = [[UIAlertView alloc]
                              initWithTitle: @"End of Game"
                              message: endMessage
                              delegate:self
                              cancelButtonTitle:@"New Game"
                              otherButtonTitles:nil];
      [endGame show];
  }
  else {
      UIAlertView *alertView = [[UIAlertView alloc]
                            initWithTitle: title
                            message: message
                            delegate:self
                            cancelButtonTitle:@"Next"
                            otherButtonTitles:nil];
  
      [alertView show];
  }
  </code></pre>
  
  <p>And then the delegate methods:</p>
  
  <pre><code>- (void)alertView:(UIAlertView *)alertView didDismissWithButtonIndex:(NSInteger)buttonIndex
  {
      [self startNewRound];
      [self updateLabels];
  }
  
  - (void)endGame:(UIAlertView *)endGame didDismissWithButtonIndex:(NSInteger)buttonIndex
  {
      [self startOver];
  }
  </code></pre>
  
  <p>So there it is. As I mentioned, the endGame AlertView appears to be using alertView's delegate, thus not activating the <code>[self startOver]</code> method. All the methods are working, it's just the AlertView is using the incorrect delegate method. <br/><br/>Regards,<br/> Mike</p>