+ (BOOL)checkTelNumber:(NSString*) telNumber
{
NSString* pattern =@"^1+[3578]+\\d{9}";
NSPredicate* pred = [NSPredicatepredicateWithFormat:@"SELF MATCHES %@",pattern];
BOOLisMatch = [predevaluateWithObject:telNumber];
returnisMatch;
}
+ (BOOL)checkTelNumber:(NSString*) telNumber
{
NSString* pattern =@"^1+[3578]+\\d{9}";
NSPredicate* pred = [NSPredicatepredicateWithFormat:@"SELF MATCHES %@",pattern];
BOOLisMatch = [predevaluateWithObject:telNumber];
returnisMatch;
}