Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you create a very long Static TableView using Storyboard?

I need to create a very long Static TableViewController.

The static table has about 5 groups, each group has a few cells, 2-7 depending on the group.

How do I accomplish this when interface builder only allows you to see the actual screen size and nothing more?

Is there a way to scroll within the tableview while in IB? Or perhaps elongating the screen so that I can see all groups and cells at the same time? I mean, the whole point of IB is to visually design your screens, but how can you design a screen that is multiple pages long?

like image 672
ElasticThoughts Avatar asked Dec 27 '11 00:12

ElasticThoughts


1 Answers

UPDATE (Dec 26, 2012): I just noticed today that in the current version of Xcode that you can 2 finger scroll on the trackpad through a long static UITableView in a storyboard. So the answer below is no longer needed.

For your viewController in the Attribute inspector on the right set Size to Freeform. Then for the TableView set the height in the Size inspector to as big as you need (like 1000). Design your giant static table to your hearts content. The default settings for the Struts and Springs should take care of resizing the table back to normal dimensions when the app is run.

like image 150
agilityvision Avatar answered Nov 09 '22 17:11

agilityvision