Uncategorized

UITableViews: removing those effin little lines

EffinLinesThose effin little lines are called ‘separators’ (you can adjust their insets over in the sidebar) and UITableViews add them whenever the list on the screen is too short to fill up all of it. It’s annoying.

The way you get rid of them is by adding an empty view as the footer of the table view:

tableView.tableFooterView = UIView()

That does the trick.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s