Hiding Extra Separators on a UITableView

8th June 2018

When you’re using a UITableView, and there isn’t enough cells to fill up the visible table, it still fills the remaining space with separators. In just one line of code, you can change that to what is probably, the most expected result.

tableView.tableFooterView = UIView()

It’s really that simple.

Check out the full Playground code.

Tags UITableView
By Chris Hannah. Say hello on Micro.blog, Twitter, or email.

✉️ Want to receive letters directly from me?

I send out one long-form letter to members every single month. No-nonsense, just a deep dive into a topic I'm interested in. No annoying tracking pixels, and it's completely free.

Become a Member