title: UIAlertView : compare titles
body: <p>I created a Alertview with login and password field.  If the user entered the wrong password I show another Alertview telling him to try again. </p>
  
  <p>I would like to use the same code for both Alertviews.  Everything works fine if I am using just one title to compare.</p>
  
  <p>What is wrong with this :</p>
  
  <pre><code>- (void) alertView:(UIAlertView *) actionSheet clickedButtonAtIndex:(NSInteger)buttonIndex{
  
      if ([[actionSheet.title compare:@"Enter your login data"] == NSOrderedSame] ||
          [[actionSheet.title compare:@"Auth Error - Try again"] == NSOrderedSame])
      {
          // Do something
  </code></pre>
  
  <p>Basically: In both cases ( both titles ) I would like to do the same.</p>