//正则表达式判断支付宝输入的钱数是否正确
//在这里只能是整数或者是小数才可以
- (BOOL)isRightNumber:(NSString *) textString
{
NSString* number=@"^[0-9]+([.]{0,1}[0-9]+){0,1}$";//整数或者是小数
NSPredicate *numberPre = [NSPredicate predicateWithFormat:@"SELF MATCHES %@",number];
NSLog(@"%d",[numberPre evaluateWithObject:textString]);
return [numberPre evaluateWithObject:textString];
}