Quote:
|
Originally Posted by martinn
I have the same problem with a tableview, the keyboard hides all my textfields when popping up. When editing a mail-account in settings on the iPhone apple have the same problem, they solve it by making it possible to scroll the view over the keyboard when the keyboard popup. But when I try the same I cant scroll to the textfield at the bottom, they are still hidden behind the keyboard. How can I solve this? If you don't understand what I mean, check settings -> mail -> and then edit one of your accounts.
|
Use the code bit I mentioned above to adjust the frame of your table view, but since it is a table view leave origin.y alone and just shrink the size.height enough to account for the height of the keyboard. You will then need to check the table view documentation on how to make the table view scroll to the cell you want because changing the frame will leave a different cell in the middle. You will then want to increase the size.height of the table view when done.
I spent about a week tweaking this behavior and getting it to work right with a table view so don't expect any miracles. Good luck.