no

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...

 NSString *string = @"how to check if a string contains another string";

 if ([string rangeOfString:@"how"].location == NSNotFound) 
 {
     NSLog(@"Not found");
 } 
 else 
 {
     NSLog(@"Found");
 }

Related

xcode 8334065876654637123

Post a Comment Default Comments

item