Hi.
I have a table with several text fields in it. Tapping on any of the text fields brings up the keyboard and the view scrolls automatically to bring the cursor above the keyboard if required.
I have a method in there that gets called whenever the user presses the Return key while editing a text field and I simply move the first responder status to the next text field in that. However, if it happens to be behind the keyboard, it does not scroll up and reveal itself.
I know this involves using the ‘beginAnimations’ method of ‘UIView’ and changing the position or size of the view but I don’t know how to calculate how much the view should move, etc.? Is there an easy way to do this? I don’t think Apple has explained this in the documentation and I’ve already tried Googling, but couldn’t come up with a decent solution.
Any help would be greatly appreciated.
Thank you.