How can I check if a string (NSString) contains another smaller string?
NSString
I was hoping for something like:
NSString *string = @\"hello bla
Here is a copy-and-paste function snippet:
-(BOOL)Contains:(NSString *)StrSearchTerm on:(NSString *)StrText { return [StrText rangeOfString:StrSearchTerm options:NSCaseInsensitiveSearch].location != NSNotFound; }