Skip to content

Instantly share code, notes, and snippets.

@victorchee
Created July 1, 2015 02:16
Show Gist options
  • Save victorchee/7b3a96e3dfd5aa1de944 to your computer and use it in GitHub Desktop.
Save victorchee/7b3a96e3dfd5aa1de944 to your computer and use it in GitHub Desktop.
TextFieldDidChange
- (BOOL)textField:(UITextField *)textField shouldChangeCharactersInRange:(NSRange)range replacementString:(NSString *)string
{
NSString *result = [textField.text stringByReplacingCharactersInRange:range withString:string];
// do something
return YES;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment