Search code examples
ios6uitableviewheight

Increase the gap between TableView sections?


Is it possible to increase the gap between TableView sections?

I have two sections that are grouped and I want to add a segment controller in between two sections. I've got the segment controller in the area I want it but I need the second section to start further down, can this be done?

Thanks


Solution

  • Either put an additional section in the table to hold the segment or add a section header view to the section below the segment. Just provide an empty view for the header. Implement the heightForSectionHeader... method so the height comes out as needed.