08th 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.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

To respond on your own website, enter the URL of your response which should contain a link to this post's permalink URL. Your response will then appear (possibly after moderation) on this page. Want to update or remove your response? Update or delete your post and re-enter your post's URL again. (Learn More)