if (answerText.text == @1) { NSLog(@YES); } else NSLog(@NO);
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?
if ([answerText.text isEqualToString:@1]) { NSLog(@YES); } else NSLog(@NO);
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.