ios - Stripe Payment Keyboard Automatically Popping Open -
i'm working on ios app uses stripe's payment system. problem is, code have below causes stripe's keyboard credit card information entry automatically open:
// paymentviewcontroller.m - (void)viewdidload { [super viewdidload]; ptkview *view = [[ptkview alloc] initwithframe:cgrectmake(15,20,290,55)]; self.paymentview = view; self.paymentview.delegate = self; [self.view addsubview:self.paymentview]; } but want keyboard displayed after user selects ptkview (the grey bar thing provided stripe) right now, view loads, keyboard enter credit card details open want bar appear, user can tap open keyboard.
yes have stop keyboard apperance, go ptkview.m fie there 1 function "statecardnumber" , comment code,
[self.cardnumberfield becomefirstresponder]; that stop automatic keyboard open.
Comments
Post a Comment