views:

91

answers:

2

Is it possible to shrink the spacing between a cell header and cell text? Looking at the example below I'd like the header to be closer to the top of the cell that contains the other text.

Sorry, I don't have high enough reputation to embed images.

http://www.freeimagehosting.net/uploads/6afdd58c2f.jpg

A: 

I assume that you are using a standard cell style and textLabel. You could change the frame.origin of the label, or create a custom cell from a nib with the exact layout you prefer.

Paul Lynch
+2  A: 

Just implement tableView:heightForHeaderInSection: in your controller and return your desired height.

- (CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section {
    return 50.0f;
}
cduhn
Thanks for the input cduhn
aahrens