how to find out is a long string contatins a word obj c, iphone
问题 I have a long string that has a running list of all the "words entered" in the text box. I want to be able to check the long string against a one word string to see if the long string contains the word in the short string. Any ideas? I've tried this and a few other things, where newString is the long string and currentTextrightnow is the short string. textRange =[newString rangeOfString:currentTextrightnow]; NSLog(@"currenttextright now is %@", currentTextrightnow); if(textRange.location !=