Sportica   Sportica

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

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

 

posted @ 2012-12-14 11:09  qingjoin  阅读(97989)  评论(0编辑  收藏  举报
  Sportica