title: xcode iphone Compare UIButton from :(id)sender with UIButtons from Array
body: <p>I have several views with buttons on it.
  All those views are linked to one ViewController and in this ViewController I have IBOutlets defined for all those 50 buttons.</p>
  
  <p>To easy access them, I stored all UIButtons in a multidimensional NSMutableArray. For testing purpose I have given all buttons a unique titleLabel. The UIButtons are correctly stored in the Array, I can test that using the titleLabel. </p>
  
  <p>After one button is pushed, I call a method:</p>
  
  <pre><code>-(IBAction)pushButton:(id)sender
  </code></pre>
  
  <p>In there I compare:</p>
  
  <pre><code>if ( [allButtonsArray objectAtIndex:1] == sender ) 
  // do something
  </code></pre>
  
  <p>Allthough the selected UIButton from the Array and the sender Button have the same titleLabel (which is unique in my case) the IF statement is not true.</p>
  
  <p>Does anybode have an idea why?</p>
  
  <p>Thanks, Pat</p>