Adding a dynamic-height UITableView into a scrolling view?

Posted by Greg on Stack Overflow See other posts from Stack Overflow or by Greg
Published on 2010-05-20T21:07:42Z Indexed on 2010/05/20 21:10 UTC
Read the original article Hit count: 357

Filed under:
|
|

Hello all – I'm getting into iPhone development and have hit my first confusing UI point. Here's the situation:

My app is tab-based, and the view that I'm confused about has a static featured content image at the top, then a dynamic list below into which X headlines are loaded. My goal is to have the height of the headline table grow as elements are added to it, and then to have the whole view scroll (both featured image on top and headline list below). So, I guess my question comes in two parts:

1) First, how do you set up a dynamic-height table view that will grow as cells are added to it. So far I've only been able to have my tables handle their own scrolling.

2) Then, what is the root NIB view that the featured image and the table should live in to enabled scrolling? I've dropped oversized content into a UIScrollView now, although did seem to have any success with having it automatically scroll.

Thanks in advance for any help on this subject!

© Stack Overflow or respective owner

Related posts about iphone

Related posts about iphone-sdk