I have created a UITableView
that is of type UITableViewStyleGrouped
. I have then created several different sections with a few rows in each. Within each of these rows I have created a custom UITableViewCell
that contains a UITextField
. I also have one UITableViewCell
that contains a UITextView
.
I have also implemented a UIToolbar
that appears on top of the UIKeyboard
that allows the user to move through the UITextField
's by pressing previous or next.
The issue I'm having is two-fold:
- I need the UITableView to scroll so that when the next
UITextField
(orUITextView
) becomes the first responder it is visible (even with the keyboard being displayed). - When a
UITextField
(orUITextView
) is selected (without using the previous and next buttons) is should adjust so that the field is visible above the keyboard.
I have looked around at lots of different tutorials however none of them have resolved my issue. Any help you could offer would be hugely appreciated.
ADDITIONAL INFO:
I'm 100% certain that my app used to do all of the above automatically, however I seems to have stopped doing it now and I don't understand why. Is there a reason why this may of happened? Is there some function or something that I may have changed that would destroy this behaviour?