I have an issue where when a
textField is clicked on in a
UITableViewCell, the method
tableView:didSelectRowAtIndexPath: does not get invoked. The problem is, I need to scroll my
tableView into proper position, otherwise the keyboard goes right over the first responder.
I have to then move code like this:
[[self tableView] scrollToRowAtIndexPath:indexPath atScrollPosition:UITableViewScrollPositionTop animated:YES];
into both my
tableView delegate method and in my
UITextField delegate method,
Is the best way to just create a new method, pass to it the indexPath of the cell/textfield being clicked, and call the method from both the tableView delegate and the
UITextField delegate? better way of going about it?