title: how to find out is a long string contatins a word obj c, iphone
body: <p>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.</p>
  
  <p>Any ideas? </p>
  
  <p>I've tried this and a few other things, where newString is the long string and currentTextrightnow is the short string. </p>
  
  <pre><code>textRange =[newString rangeOfString:currentTextrightnow];
  NSLog(@"currenttextright now is %@", currentTextrightnow);
  if(textRange.location != NSNotFound)
  
  {
  
      NSLog(@"Does contatin the substring");
  
  }
  </code></pre>