摘要:
-(BOOL) textField:(UITextField *)textField shouldChangeCharactersInRange:(NSRange)range replacementString:(NSString *)string{NSMutableString *text = [[moneyInputField.text mutableCopy] autorelease];[text replaceCharactersInRange:range withString:string];return [text length] <= 12;} 阅读全文