How to check if a string contains another string in xcode
NSString *string = @"how to check if a string contains another string"; if ([string rangeOfString:@"how"].locatio...
https://www.czetsuyatech.com/2014/08/xcode-string-checker.html
NSString *string = @"how to check if a string contains another string";
if ([string rangeOfString:@"how"].location == NSNotFound) { NSLog(@"Not found"); } else { NSLog(@"Found"); }
Post a Comment