标签:
//判断roadTitleLab.text 是否含有qingjoin if([roadTitleLab.text rangeOfString:@"qingjoin"].location !=NSNotFound)//_roaldSearchText { NSLog(@"yes"); } else { NSLog(@"no"); }
iOS 判断字符串中含有某个字符串 rangeOfString
标签:
原文地址:http://www.cnblogs.com/BinZone/p/4690327.html