0

How can I limit the number of cells that are drawn in my table view to the number of objects in my data source. Right now it displays my data, but it also displays empty cells underneath. how can I make it so that it does not draw any empty cells after it runs out of data to display.

Im using a storyboard with a tableView controller.

edit: found the answer

self.tableView.tableFooterView = [[UIView alloc] initWithFrame:CGRectZero];
Stonep123
  • 615
  • 3
  • 9
  • 24

0 Answers0