diff --git a/ios/TPSStripe/TPSCardField.m b/ios/TPSStripe/TPSCardField.m index d328bedb2..fae2cbb0e 100644 --- a/ios/TPSStripe/TPSCardField.m +++ b/ios/TPSStripe/TPSCardField.m @@ -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 { @@ -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; }