Ludyem
Ludyem

Reputation: 1919

how to erase empty cells in a tableView

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

Answers (2)

amir
amir

Reputation: 1332

I think you want to remove the separator. Set the separatorStyle of the tableView to UITableViewCellSeparatorStyleNone.

Upvotes: 2

Daij-Djan
Daij-Djan

Reputation: 50089

adding an empty footer view?!

    let view = UIView(frame: CGRectZero);
    self.tableView.tableFooterView = view;

Upvotes: 1

Related Questions