A bug, in a dynamic form, click on the "previous", problems can arise.
Click "previous", a UITextField pop-up keyboard, where the UITableCell activeTextField generated scrollViewToTextField method execution failed, leading to the keyboard can not be recycled.This is a great project.
Solution:
On your delegate method, add the last lines
-
(void)keyboardControls:(BSKeyboardControls *)keyboardControls selectedField:(UIView *)field inDirection:(BSKeyboardControlsDirection)direction { UIView *view = keyboardControls.activeField.superview; [self.tableView scrollRectToVisible:view.frame animated:YES];
//Fix Keyboard stuck on previous rows double delayInSeconds = 0.2; dispatch_time_t popTime = dispatch_time(DISPATCH_TIME_NOW, delayInSeconds * NSEC_PER_SEC); dispatch_after(popTime, dispatch_get_main_queue(), ^(void){ [field becomeFirstResponder]; }); }
hay,
Have check this solution? NSMutableArray *textFields = [NSMutableArray arrayWithArray:self.keyboardControls.textFields]; [textFields addObject:self.textBiography]; self.keyboardControls.textFields = textFields;