Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Saschamz committed Jul 18, 2019
1 parent d1c1c09 commit 87f9e25
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions ios/TPSStripe/TPSCardField.m
Original file line number Diff line number Diff line change
Expand Up @@ -18,22 +18,13 @@ @implementation TPSCardField {

}

- (void)dealloc {
[[NSNotificationCenter defaultCenter] removeObserver:self name:UIKeyboardWillShowNotification object:self.window];
}

- (instancetype)initWithFrame:(CGRect)frame {
if ((self = [super initWithFrame:frame])) {
_isFirstResponder = NO;
_paymentCardTextField = [[STPPaymentCardTextField alloc] initWithFrame:self.bounds];
_paymentCardTextField.delegate = self;
[self addSubview:_paymentCardTextField];
self.backgroundColor = [UIColor clearColor];
[[NSNotificationCenter defaultCenter]
addObserver:self
selector:@selector(keyboardWillShow:)
name:UIKeyboardWillShowNotification
object:self.window];
}
return self;
}
Expand Down

0 comments on commit 87f9e25

Please sign in to comment.