NSString *haystack = @”welcome to the mall”;
NSString *needle = @”mall”;
if ([haystack rangeOfString:needle].location == NSNotFound)
NSLog(@”needle not found in haystack”);}
NSLog(@”needle found in haystack.”);
Did you like this article? Did it Help you Solve your Problem? You can get the all the latest articles published at DeveloperFeed in your email inbox by entering your email address below. Your address will only be used for mailing you the articles, and each one will include a link so you can unsubscribe at any time.