Skip to content

Commit

Permalink
fix issue tipsi#408
Browse files Browse the repository at this point in the history
  • Loading branch information
Butakov Igor authored and Butakov Igor committed Feb 12, 2019
1 parent 27dd2c6 commit acf5146
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 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];
// fix issue 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,12 @@ - (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];
// fix issue https://github.com/tipsi/tipsi-stripe/issues/408
// [[NSNotificationCenter defaultCenter]
// addObserver:self
// selector:@selector(keyboardWillShow:)
// name:UIKeyboardWillShowNotification
// object:self.window];
}
return self;
}
Expand Down

0 comments on commit acf5146

Please sign in to comment.