Skip to main content

Empty Table View Cells

Let’s imagine you have setup your UITableView and populated its cells. Things are looking good but there are empty cells after your content has finished? Well, there is an easy way to hide those empty cells.

Simply enter the following into ViewDidLoad() if you are using a UITableViewController or if your creating a UITableView then after you initialize your table view.

This will remove the empty cells from the bottom of your UITableView leaving just a blank space so ensure this still fits how you want the display to look.

Please follow and like us: