VMaskTextField icon indicating copy to clipboard operation
VMaskTextField copied to clipboard

VMaskTextField is a library which create an input mask for iOS.

Results 9 VMaskTextField issues
Sort by recently updated
recently updated
newest added

Trying to set a phone number programmatically before the user starts typing manually but the results are always wrong. When using `textfield.text = ...` directly, no mask is applied. When...

The bug ocurres because wasn't considered the chars different than # on range calculation.

- (BOOL)textField:(UITextField *)textField shouldChangeCharactersInRange:(NSRange)range replacementString:(NSString *)string { return [_txtPass shouldChangeTextInRange:range replacementText: string]; } Error range, 'Sending NSRange (aka 'struct_NSRange') to parameter of incompatible type 'UITextRange * _Nonnull'

@viniciusmo , any ideas, why textField add target not working! ``` VMaskTextField *textField [textField addTarget:self action:@selector(textFieldDidChange:) forControlEvents:UIControlEventEditingChanged]; -(void)textFieldDidChange :(UITextField *)theTextField{ NSLog( @"text changed: %@", theTextField.text); } ```

I figured that the raw property would return the value of the textfield without the mask, but not only it doesn't do that, it always returns nil. I checked the...

I could't figure out how to implement a mask for phones with 8 OR 9 digits as it needs the mask (##) ####-#### in one case and (##) #####-#### in...

When i use next format. i get bad result format "##:##" text: "1234" result: "12:43" expected result: "12:34"