I searched a bit, but couldn't find an answer to this (probably very simple) question.
I have an NSString, and I'd like to check if it contains a word. Something like this:
NSString *sentence = @"The quick brown fox";
NSString *word = @"quack";
if ([sentence containsWord:word]) {
NSLog(@"Yes it does contain that word");
}
Thanks.