iOS 判断字符串中含有某个字符串

//判断roadTitleLab.text 是否含有join

if([roadTitleLab.text rangeOfString:@”join”].location !=NSNotFound)

{

NSLog(@”yes”);

}else {

NSLog(@”no”);

}

分享到: 更多
Separator image Posted in IOS.