I’m currently coding an app that is mostly composed of forms.
To do the job I’m using static cells with an UITableViewController, that can contains UITextField and UITextView.
If you’re using the default configuration of the language everything works reasonably good.
But for the UITextView, the weak is you can’t hide the keyboard, because taping on the return key will jump to next line.
So I put a toolbar to enable the dismiss keyboard feature (with NSNotification on keyboard).
But when it scrolls to the cell that contains the textfield, the field is hidden by the toolbar, the scroll doesn’t add the height of the toolbar.
Screenshots :
Before clicking on the field
https://dl.dropbox.com/u/9858108/tableViewIssue1.jpg
After clicking on the field
https://dl.dropbox.com/u/9858108/tableViewIssue2.jpg
Anyone has a magic code snippet to do the trick ?
A., thank you for the tip, I modified the code and now it works. Here is the working code :
The interesting part that fix the issue is :