Variable height UIViews and labels
Posted
by Bob Spryn
on Stack Overflow
See other posts from Stack Overflow
or by Bob Spryn
Published on 2010-06-17T10:45:54Z
Indexed on
2010/06/18
6:13 UTC
Read the original article
Hit count: 301
Ok so I'm not in a table cell at this point. (I've seen a lot of threads regarding the height of cells.)
I have a detail view with a title and description at the top of the view, followed by a tableView below it. If the description is going to vary in length, how do I get the tableView to adjust with it accordingly so it always starts directly below it?
I see apple doing this in the app store application. If you look at an application description (as if you were going to buy it), they have an application description, and wherever that ends a scrolling pane of screenshots follow. How do they do the varying height on the text description like that?
Are they doing this all programmatically or can I use the layout controls in IB to do the same thing?
© Stack Overflow or respective owner