A few days ago I learned a neat trick. You maybe familiar with the look of a plain table view on iOS:

Simulator Screen Shot 29.06.2015 21.46.49

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:

Simulator Screen Shot 29.06.2015 22.04.30

You can find the trivial code on github.