PDA

View Full Version : How to scroll UITableView When Keyboard hides the bottom half section of the screen




kashif.vd
Jul 19, 2011, 01:31 AM
This is my custom design see screenShots

1) 2 UITableView in this screen working perfect

http://i.stack.imgur.com/gx41u.png

2) In this screen When Edit button pressed, both (UITableView -> UITableViewCells) become editable like that

http://i.stack.imgur.com/ppUWw.png

3) and now when you trying to edit (cell 2 of section 2), what happen the keyboard will appear and the keyboard covers the bottom half of the screen, and hence the issue. like that

http://i.stack.imgur.com/79MEa.png

Suggest me what to do in this scenario. I am only using 2 UITableView.



PhoneyDeveloper
Jul 19, 2011, 07:05 AM
UITableView adjusts either the frame or the contentInsets of the table view when the keyboard appears/disappears. So no part of the tableview's content is behind the keyboard. That's what you need to do.