UITableView Not Respecting heightForHeaderInSection/heightForFooterInSection?
问题 I have a UITableView where in some instances, certain sections have zero rows. My goal is that when this is true, I don't want any wasted space in the table view, it should look like there's no data. The problem I'm having is with the header and footer for the sections, which are showing even if there's no row and despite me overriding the delegate method to return 0.0f. Here's what it looks like - you can see the ~20p of gray space at the top there, headers and footers of about 10p each for