BOOL isNum = YES;
NSString *teleNum = self.telephoneNumber.text;
[NSCharacterSet decimalDigitCharacterSet];
if ([[teleNum stringByTrimmingCharactersInSet: [NSCharacterSet decimalDigitCharacterSet]]stringByTrimmingCharactersInSet: [NSCharacterSet whitespaceCharacterSet]].length >0) {
NSLog(@"不是纯数字");
isNum = NO;
}else{
NSLog(@"纯数字!");
isNum = YES;
}