Skip to content

Commit

Permalink
Merge pull request #10 from prolificinteractive/ptk_ux_behavior_fix_i…
Browse files Browse the repository at this point in the history
…nvalidinfo

PTKView - Fix wrong UX behavior
  • Loading branch information
Xodia committed Oct 8, 2015
2 parents e0b789b + 3fd8323 commit 0b47473
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions PaymentKit/PTKView.m
Original file line number Diff line number Diff line change
Expand Up @@ -439,8 +439,13 @@ - (void)textFieldDidBeginEditing:(UITextField *)textField

- (BOOL)textField:(UITextField *)textField shouldChangeCharactersInRange:(NSRange)range replacementString:(NSString *)replacementString
{
textField.textColor = self.customFontColor;
textField.font = self.customFont;
if (self.customFontColor) {
textField.textColor = self.customFontColor;
}

if (self.customFont) {
textField.font = self.customFont;
}

if ([textField isEqual:self.cardNumberField]) {
return [self cardNumberFieldShouldChangeCharactersInRange:range replacementString:replacementString];
Expand Down

0 comments on commit 0b47473

Please sign in to comment.