How can I check if a string (NSString) contains another smaller string?
NSString
I was hoping for something like:
NSString *string = @\"hello bla
If do not bother about case-sensitive string. Try this once.
NSString *string = @"Hello World!"; if([string rangeOfString:@"hello" options:NSCaseInsensitiveSearch].location !=NSNotFound) { NSLog(@"found"); } else { NSLog(@"not found"); }