Reputation: 1919
I am trying to display a simple UITableView with some data so that it doesn't displays empty cells at the end of the table. How do I set an empty footer view in swift?
Upvotes: 0
Views: 280
Reputation: 1332
I think you want to remove the separator. Set the separatorStyle
of the tableView to UITableViewCellSeparatorStyleNone
.
Upvotes: 2
Reputation: 50089
adding an empty footer view?!
let view = UIView(frame: CGRectZero);
self.tableView.tableFooterView = view;
Upvotes: 1