title: Perform Action after duration if buttonIndex of alertView is not clicked
body: <p>I would like to display a temporary alert for about 2 seconds to give the user a chance to cancel an action. If the user clicks the cancel button, the subsequent method would not be called. However, if the user does not press cancel, then the subsequent method would be called. Anyone have any ideas on how to make this work?</p>
  
  <p>I have a setup that looks like this:</p>
  
  <pre><code>-(void) buttonPress {
  
      //alert with message and cancel button
      UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"2 seconds to cancel" 
      message:@"Push Cancel to stop" delegate:self cancelButtonTitle:@"Cancel" 
      otherButtonTitles:nil, nil];
      alert.tag = 1;
      [alert show];
      return;
  }
  
  - (void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex {
  
      if (buttonIndex == 0 &amp;&amp; alertView.tag == 1) {
  
          //action cancelled
      }
      else {
  
          //action not cancelled
      }
  }
  </code></pre>