UITableView in Popover scrolls out of bounds when keyboard is opened?

I've come to the conclusion that this is a bug. I have filed a bug report with Apple ( rdar://8156616 ) as well as a report on OpenRadar .

Up vote 1 down vote favorite 2 share g+ share fb share tw.

I have a popover that contains a UITableView. This UITableView has a cell with a text field in it: When the popover opens near the bottom of the screen, and I tap the text field to edit it, the keyboard comes up, and the popover moves up to avoid being covered by the keyboard. But as it moves up, the table view in the popover scrolls up out of bounds: I can scroll it back down, but how do I prevent this from happening.

Cocoa-touch uitableview ipad uipopovercontroller link|improve this question edited Jun 26 '10 at 7:30Madhup4,43221440 asked Jun 25 '10 at 23:14indragie4,4882164 92% accept rate.

I've come to the conclusion that this is a bug. I have filed a bug report with Apple (rdar://8156616) as well as a report on OpenRadar. For anyone interested, here is a sample project that demonstrates the issue.

Try disabling scrolling on the table view. Self. TableView scrollingEnabled:NO.

Tried this, didn't work. – indragie Jun 27 '10 at 4:54.

How are you setting the content view of your pop over controller. Please try editing the auto-resizing mask of the content view and set it from top-left. Hope this helps.

Thanks, Madhup.

Also tried this, and it didn't work – indragie Jun 27 '10 at 15:09.

So that there is no excess for it to scroll up.

I did this as well, and then I NSLogged the content size after the scroll view went out of bounds, and there is no change in the content size but the problem is still there. – indragie Jul 1 '10 at 1:07 I'd probably start to look at a bug report. I don't see how you have done anything wrong or could do anything more right, and the UIPopoverController has been pretty buggy during my experience with it.

– v01d Jul 1 '10 at 10:23 Will do, thanks. – indragie Jul 2 '10 at 20:28.

I had the same problem but when hiding the keyboard and reloading the table view! There is one solution for this problem! What you have to do is first hide the keyboard and reload the table view or change the table view in method recieving keyboard did hide notification!

At first I called textView resignFirstResponder; or textField resignFirstResponder; and then -(void)keyboardDidHide:(NSNotification *)notif { //Check some conditions if you want tableView reloadData; }.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions