Search Specific word in string

iPhone SDK Tips & Tricks


NSString *searchForMe = @"Hi";
NSRange range = [searchThisString rangeOfString : searchForMe];

if (range.location != NSNotFound)
{
NSLog(@"I found something.");
}