RajV RajV - 9 months ago 57
Swift Question

Grey area below grouped UITableView

I have a UITableView with grouped style. I have set the footer height to 0.

tableView.sectionFooterHeight = 0.0

When I scroll down all the way I get a grey area at the bottom of the table view.

enter image description here

How do I get rid of this area?

Edit: This problem only happens for grouped table style. If I use plain style I don't get the blank area. But using a plain style is not an option for other reasons.


It must be the height of section footer which is consuming this area. Try setting the following:

func tableView(tableView: UITableView, heightForFooterInSection section: Int) -> CGFloat {

    return CGFloat.min