Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
- (void)keyboardControls:(BSKeyboardControls *)keyboardControls selectedField:(UIView *)field inDirection:(BSKeyboardControlsDirection)direction
{
AppointmentDetailEditCell *cell = (AppointmentDetailEditCell *)keyboardControls.activeField.superview.superview;
NSIndexPath *indexPath = [self.tableView indexPathForRowAtPoint:cell.center];
NSLog(@"Scroll to: %@ for cell: %@ and field: %@", indexPath, cell, field);
[self.tableView scrollToRowAtIndexPath:indexPath atScrollPosition:UITableViewScrollPositionMiddle animated:YES];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment