views:

15

answers:

1

Hey all,

I have a UITableView with a header. When I scroll in the section that does not fit all its elements on the screen, I'd like the header to move off screen instead of the normal behavior of staying on top until it is replaced by another section.

Is this doable? I would like to avoid making the header a UITableView row like the elements within the section.

Thanks!

+1  A: 

As aBitObvious suggested, use a Grouped Tableview to achieve the section header going off affect. Getting the background clear which is what I require for my project required a bit of searching because there is one critical line that is not so intuitive.

self.tableview.backgroundColor = [UIColor clearColor];
self.tableview.opaque = NO;
self.tableview.backgroundView = nil; // THIS ONE TRIPPED ME UP!
self.tableview.separatorColor = [UIColor clearColor];
mark