I have a UITableView
with static custom UITableViewCell
s, I need to scroll a text field into view as currently they are getting hidden behind the keyboard after the return key is pressed and the next responder is set. I know i need to use scrollToRowAtIndexPath:atScrollPosition:animated:
. How would I go about scrolling to one of the text boxes?
I know this should scroll itself but if your UIViewController
derives from UITableViewController
(as Apple states it should be) then the UITableViewController
class handles this behaviour for you by implementing UITextFieldDelegate
, UIScrollViewDelegate
etc. My application stopped doing this as I changed to derive from UIViewController
and add the table view on top of the view controller's UIView
. So basically I'm missing the features from UITableViewController
because I (for other reasons) choose to derive from UIViewControler
.