Welcome, Guest
Username Password: Remember me

Keyboard appears, table resizes. Keyboard disappears, table doesn't.
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: Keyboard appears, table resizes. Keyboard disappears, table doesn't.

Keyboard appears, table resizes. Keyboard disappears, table doesn't. 1 year, 4 months ago #1

Hi,

I have a grouped table view (that doesn't take up the entire size of the screen) with one of the cells being an SCTextFieldCell. When I tap in the text field cell, the UITableView resizes properly when the keyboard is displayed. But when I tap the Return key to dismiss the keyboard, the table does not resize back to the original size so the cells that were underneath the keyboard no longer display unless you scroll them into view.

I'm using beta 2.0 beta 3.

Attached are a couple images demonstrating the problem.

Before entering a keyword:

Screenshot_2011.png


After entering a keyword. You can see the visible area of the UITableView has been reduced so the Sort By cell is now below the visible area of the UITableView.

Screenshot_2011-20110107.png


Manually scrolling the UITableView up a bit you can see the scroll area has been reduced above where the keyboard would have been:

Screenshot_2011-20110107-2.png


And here's what that screen looks like in Interface Builder so you can see my original UITableView doesn't take up the entire width or height of the view:

Screen_shot_2011_01_07_at_2.png



But I would have expected the original UITableView size to be remembered and then put back the same size after the keyboard is dismissed. Is there something I need to do to handle that properly?

Thanks!

Brendan
  • tapforms
  • OFFLINE
  • Expert Boarder
  • Posts: 120
  • Karma: 4
Thanks!
Brendan
www.tapforms.com
Last Edit: 1 year, 4 months ago by tapforms.

Re: Keyboard appears, table resizes. Keyboard disappears, table doesn't. 1 year, 4 months ago #2

Hi Brendan,

I have not been able to replicate your issue at all. I've created a project with a table view that's identical to yours, and everything seems to be working properly. Please find the project attached (just please provide your STV files under the Sensible TableView folder).

This attachment is hidden for guests. Please log in or register to see it.

Are you able to replicate the problem at your side?
Attachments:
  • Attachment This attachment is hidden for guests. Please log in or register to see it.
  • tarekskr
  • OFFLINE
  • Administrator
  • Posts: 2402
  • Karma: 72
Last Edit: 1 year, 4 months ago by tarekskr.

Re: Keyboard appears, table resizes. Keyboard disappears, table doesn't. 1 year, 4 months ago #3

Hello Tarek,

Thanks for the sample project. I think the problem with my app is that I'm not creating the model inside loadView. I'm doing it after my web services call returns. This is because the number of rows in the table might change depending on the values selected. I've just told my app to remember the table's frame and then to reset it back after my web services call is finished. Seems to work.

Thanks!

Brendan
  • tapforms
  • OFFLINE
  • Expert Boarder
  • Posts: 120
  • Karma: 4
Thanks!
Brendan
www.tapforms.com
  • Page:
  • 1
Time to create page: 0.77 seconds