//判断tString是否含有abc
if([tString rangeOfString:@"abc"].location !=NSNotFound)
{
NSLog(@"yes");
}
else
{
NSLog(@"no");
}
//判断tString是否含有abc
if([tString rangeOfString:@"abc"].location !=NSNotFound)
{
NSLog(@"yes");
}
else
{
NSLog(@"no");
}