BSKeyboardControls icon indicating copy to clipboard operation
BSKeyboardControls copied to clipboard

A bug, in a dynamic form, click on the "previous", problems can arise.

Open Lcccocoa opened this issue 13 years ago • 2 comments

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.

Lcccocoa avatar Aug 08 '12 13:08 Lcccocoa

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]; }); }

mabril avatar Jun 07 '13 08:06 mabril

hay,

Have check this solution? NSMutableArray *textFields = [NSMutableArray arrayWithArray:self.keyboardControls.textFields]; [textFields addObject:self.textBiography]; self.keyboardControls.textFields = textFields;

pandya293 avatar Nov 15 '14 09:11 pandya293