phife757
phife757

Reputation: 91

UITableView landscape scrolling issue

A little background:

My app is designed as a web form in a UITableView. It is similar in format to the iPhone's Settings > Mail,Contacts,Calendars > "Account Name" > Account Info. A few differences: 1) I have a big text box on the bottom where you can put a "message body". 2) I have a big red button underneath the text box, similar to the red "Delete Account" button at Settings > Mail,Contacts,Calendars > "Account Name". the red button button submits the "form".

The view described above fits in a 320 width by 416 height view (in other words, there is no need to scroll in portrait mode including a Nav Bar)

The issue:

When I rotate to landscape, the UITableView cannot scroll to view the entire 416 height. Im stuck at 268 by 480 ( plus nav bar) and the bottom part of the table (part of the text box and the red button) are cut off and hidden below. If you use the scroll "spring-back" you can temporarily see the rest of the view, until you let go.

Other design details

Does anyone have any suggestions as to what the issue might be or what else to try?

Upvotes: 0

Views: 2467

Answers (1)

No Surprises
No Surprises

Reputation: 4901

Have you tried this (you'll also want to remove the bit about forcing the height of the view and the table):

self.tableView.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;

Upvotes: 2

Related Questions