Skip to content

Instantly share code, notes, and snippets.

@astralbodies
Created March 6, 2013 15:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save astralbodies/5100167 to your computer and use it in GitHub Desktop.
Save astralbodies/5100167 to your computer and use it in GitHub Desktop.
- (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