title: Trouble comparing NSString to NSArray object
body: <p>Ok, so I'm trying to check if an object from an <code>NSArray</code> equals something inputed by the User into a <code>UITextField</code>.  It should work, but for some reason it dosn't.  Here is my code:</p>
  
  <pre><code>    if (theAnswer.text == [correctAnswers objectAtIndex:problemNumber]) {
      NSLog(@"CORRECT");
  }
  else {
      NSLog(@"wrong");
  }
  </code></pre>
  
  <p>The console always give wrong.
  I put this log in:</p>
  
  <pre><code>NSLog(@"%@ %@", theAnswer.text, [correctAnswers objectAtIndex:problemNumber]);
  </code></pre>
  
  <p>And I get <code>A A</code></p>
  
  <p><code>wrong</code>
  printed everytime.  Thanks for the help</p>