Skip to content

Commit

Permalink
Removed provisionally observers for iOS causing the card input to fre…
Browse files Browse the repository at this point in the history
…eze.

source: tipsi#408
  • Loading branch information
Tamara Bernad committed Aug 7, 2019
1 parent d6d23ef commit b031a61
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions ios/TPSStripe/TPSCardField.m
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ @implementation TPSCardField {
}

- (void)dealloc {
[[NSNotificationCenter defaultCenter] removeObserver:self name:UIKeyboardWillShowNotification object:self.window];
// removed as per https://github.com/tipsi/tipsi-stripe/issues/408
// [[NSNotificationCenter defaultCenter] removeObserver:self name:UIKeyboardWillShowNotification object:self.window];
}

- (instancetype)initWithFrame:(CGRect)frame {
Expand All @@ -29,11 +30,11 @@ - (instancetype)initWithFrame:(CGRect)frame {
_paymentCardTextField.delegate = self;
[self addSubview:_paymentCardTextField];
self.backgroundColor = [UIColor clearColor];
[[NSNotificationCenter defaultCenter]
addObserver:self
selector:@selector(keyboardWillShow:)
name:UIKeyboardWillShowNotification
object:self.window];
// [[NSNotificationCenter defaultCenter]
// addObserver:self
// selector:@selector(keyboardWillShow:)
// name:UIKeyboardWillShowNotification
// object:self.window];
}
return self;
}
Expand Down

0 comments on commit b031a61

Please sign in to comment.