// 判断是否是数字
+ (BOOL)isPureNumber:(NSString*)string;
+ (BOOL)isPureNumber:(NSString*)string{
NSScanner* scan = [NSScanner scannerWithString:string];
long long val;
return[scan scanLongLong:&val] && [scan isAtEnd];
}
// 判断是否是数字
+ (BOOL)isPureNumber:(NSString*)string;
+ (BOOL)isPureNumber:(NSString*)string{
NSScanner* scan = [NSScanner scannerWithString:string];
long long val;
return[scan scanLongLong:&val] && [scan isAtEnd];
}