判断字符串是否包含 某段字符-iOS 2017-01-06 本文已影响23人 HAKA 判断testStr是否包含test if([testStr rangeOfString:@"test"].location!=NSNotFound) { }