Table View Footer In Plain Table View
A few days ago I learned a neat trick. You maybe familiar with the look of a plain table view on iOS:
Even though there are only two cells in the table view, there are all those lines and it looks like there are many more empty cells. Sometimes you don't want those empty cells. You could use a grouped table view but this looks different especially when you have section headers.
The trick is to add a table footer view:
tableView.tableFooterView = UIView(frame: CGRect.zeroRect)
As you can see the footer view has a frame of zeroRect which is the same as CGRectMake(0, 0, 0, 0) . The result looks like this:
You can find the trivial code on github.

