Hide remove separator line if UITableViewCells are empty [duplicate]

Even simpler than Andrey Z’s reply:
Simply make a bogus tableFooterView in your UITableView class:

self.tableFooterView = [UIView new]; // to hide empty cells

and Swift:

tableFooterView = UIView()

Leave a Comment