AnsweredAssumed Answered

Text Field (Newbie question)

Question asked by anonymous2233 on Feb 29, 2012
Latest reply on Mar 1, 2012 by anonymous2233
Hi guys,i have next code, where answerText is UITextField
 if (answerText.text == @"1")      {         NSLog(@"YES");     }     else NSLog(@"NO");


this code always returns NO when i type in textField "1" (in iOS Simulator),it returns YES only when i type in Xcode answerText.text = @"1",why?

Outcomes