例:判断testLabel.text中是否包含 zhiliao
if([testLabel.text rangeOfString:@"zhiliao"].location != NSNotFound) {
NSLog(@"YES");
} else {
NSLog(@"NO");
}
例:判断testLabel.text中是否包含 zhiliao
if([testLabel.text rangeOfString:@"zhiliao"].location != NSNotFound) {
NSLog(@"YES");
} else {
NSLog(@"NO");
}