Under some circumstances I want to hide a section of an UITableView
.
I’ve solved this by returning 0
rows for the section and nil
for the section title.
After that the section is empty / not visible, but there’s a bigger gap than usual between the remaining sections.
I’ve tried to set the heightForHeader
and heightForFooter
to 0.0
but the space remains bigger.
How can I avoid this extra space between the sections?