- (BOOL)checkTel:(NSString *)str
{
if ([str length] == 0) {
return NO;
}
NSString *regex = @"[1][34578]\\d{9}";
NSPredicate *pred = [NSPredicate predicateWithFormat:@"SELF MATCHES %@", regex];
BOOL isMatch = [pred evaluateWithObject:str];
if (!isMatch) {
return NO;
}
return YES;
}