How can I get a custom UITableView to automatically scroll to a selected text field?
- by nornagon
I have a UITableView, which I am controlling from a custom UIViewController. When the user clicks the 'add' button, I add a row to the UITableView with a text field in it, and make it the first responder. The problem is, when the bottom of the table is out of view (or hidden by the keyboard), the UITableView doesn't scroll to bring the text field into view.
UITableViewController does this automatically, but my View Controller can't be a subclass of UITableViewController.