There are some section in the table that does not contain any data and would like to hide that section.
How to do this?
It is true that 0 is not a valid height for headers and footers. However, the heights are CGFloat values. You can specify a very small number (I've used 0.1) for the height of the section headers and footers.
Kind of a hack, but it works.