I need to reduce the space between two sections ofUITableView
. I looked at this question but the solution doesn't allow for my custom header view because it combines the space of the footer and header.
Here is a picture of the UITableView
. The black color is the UITableView
background color.
Did you try override this function:
This also may help :
Along with the answer posted by Icaro I would like to add that you also need to implement the
tableView:viewForFooterInSection:
method returningnil
for the section you want to remove the empty space below It will then become:TableView Delegate methods doesn't effect with float value is 0.0f. Try giving a value greater than that.
I think you can solve this by adjusting the footer view height to its min: in Storyboard or XIB.
I don't know what you have written in your code for footer height. Sorry if I am wrong.
Possible duplicate of Hide footer view in UITableView
For Swift 3