#pragma mark - UITextFieldDelegate
- (BOOL)textField:(UITextField *)textField shouldChangeCharactersInRange:(NSRange)range replacementString:(NSString *)string {
NSMutableString *text = [NSMutableString stringWithString:textField.text];
[text replaceCharactersInRange:range withString:string];
NSLog(@"shouldChangeCharactersInRange: %@", text);
return YES;
}
网友评论