Skip to content

Conversation

@halakaluf
Copy link

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

@CavalcanteLeo
Copy link

It's crashing

[self shouldChangeCharactersInRange:NSMakeRange(self.text.length, 0) replacementString:[NSString stringWithFormat:@"%c",[text characterAtIndex:i]]];

//fix bug reported on https://github.com/viniciusmo/VMaskTextField/issues/20
NSString *strToGetCharacterInMask = [_mask substringWithRange:NSMakeRange(0, i)];

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

crashes here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants