How can I get a custom UITableView to automatically scroll to a selected text field?

Posted by nornagon on Stack Overflow See other posts from Stack Overflow or by nornagon
Published on 2010-06-08T08:27:17Z Indexed on 2010/06/08 8:32 UTC
Read the original article Hit count: 305

Filed under:
|
|

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.

© Stack Overflow or respective owner

Related posts about iphone

Related posts about uitableview