NSString *string = @"how to check if a string contains another string";
if ([string rangeOfString:@"how"].location == NSNotFound)
{
NSLog(@"Not found");
}
else
{
NSLog(@"Found");
}
Explore NERV — open-source Java libraries for audit trails, persistence, exception handling, and reliable event-driven architecture.
Explore NERV on GitHub →Our website uses cookies to improve your experience. Learn more
Accept !
إرسال تعليق