title: Adding more than one confirmationalerts (UIAlertView)
body: <p>Basically, what I try to do is to add multiple confirmationalerts...but I just cant get it to work. No matter what confirmationalert i press, the "Continue" button leads to the exact same thing (a body without text and a subject with "XXXX")... 
  Any idea how to make the confimationalerts to lead to different things? </p>
  
  <p>EDIT 2; No matter what button I press (continue or dismiss), the app sends the user to mail.app...</p>
  
  <pre><code>        -(IBAction)mail {
  
                      UIAlertView *mail = [[UIAlertView alloc] init];
                          [mail setTag:ALERTVIEW_MAIL_TAG];
                          [mail setTitle:@"Open mail"];
                          [mail setMessage:@"....."];
                          [mail setDelegate:self];
                          [mail addButtonWithTitle:@"Continue"];
                          [mail addButtonWithTitle:@"Dismiss"];
                          [mail show];
                          [mail release];
  
                      }
  
                      -(IBAction)feedback {
                          UIAlertView *feedback = [[UIAlertView alloc] init];
                          [feedback setTag:ALERTVIEW_TIPSA_TAG];
                          [feedback setTitle:@"Open mail"];
                          [feedback setMessage:@"....."];
                          [feedback setDelegate:self];
                          [feedback addButtonWithTitle:@"Continue"];
                          [feedback addButtonWithTitle:@"dismiss"];
                          [feedback show];
                          [feedback release];
                      }
  
  - (void)showConfirmAlert
                      {   
                      }   
  
  - (void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex {
                     if([alertView tag] == ALERTVIEW_FEEDBACK_TAG) {
                          NSURL *url = [[NSURL alloc] initWithString:@"mailto:?subject=XXXX"];
                          [[UIApplication sharedApplication] openURL:url];
                          [url release];
                      }
  
          else if (buttonIndex == 1) {
          }
  
  
  
             else  if ([alertView tag] == ALERTVIEW_MAIL_TAG) {
                          NSString *subject = @"YYYY";
                          NSString *body = @".....";
                          NSString *path = [NSString stringWithFormat:@"mailto:?subject=%@&amp;body=%@", subject, body];
                          NSURL *url = [NSURL URLWithString:[path stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]];
                          [[UIApplication sharedApplication] openURL:url];
                      }
  
              else if (buttonIndex == 1) {
          }
  
      }
  </code></pre>