//判断是否含有数字
-(NSInteger)checkIsHaveNumAndLetter:(NSString*)string{
//数字条件
NSRegularExpression *tNumRegularExpression = [NSRegularExpression regularExpressionWithPattern:@”[0-9]” options:NSRegularExpressionCaseInsensitive error:nil];
//符合数字条件的有几个字节
NSUInteger tNumMatchCount = [tNumRegularExpression numberOfMatchesInString:string
options:NSMatchingReportProgress
range:NSMakeRange(0, string.length);
return tNumMatchCount;
}