How can I check if a string (NSString) contains another smaller string?
NSString
I was hoping for something like:
NSString *string = @\"hello bla
try this,
NSString *string = @"test Data"; if ([[string lowercaseString] rangeOfString:@"data"].location == NSNotFound) { NSLog(@"string does not contain Data"); } else { NSLog(@"string contains data!"); }