11:00 AM

UITAbleView -Row invisible in keypad

Posted by pradeep T

1


I faced the same situation. It is suggested that you change the height of your view when the keyboard appears. The problem in the case you've described is, there is not enough content in the tableview to scroll up and still have something in the area hidden by the keyboard.

If you adjust the size of the tableview to be equal to 480-150 (height of view - height of keyboard), and use scrollToRowAtIndexPath, it will work as expected. Once the keyboard hides again, change back the height of the tableview to the original height.

0 comments: