3

So I try to add a footer to my table. And below is what I did, but the view doesn't go to the bottom of the app, instead, it will stay under the last TableCell. So how can I make it my footer for my page?

enter image description here

Tree Nguyen
  • 1,198
  • 1
  • 14
  • 37

1 Answers1

3

For Footer in tableView Simply drag a UIView after the UITableViewCell. For Header drag and drop a UIView into the header part.

TableView default taken it as a header View and footer Connect an IBoutlet to the view and return the view in the delegate method.

-(UIView *)tableView:(UITableView *)tableView viewForFooterInSection:(NSInteger)section{
    return yourView;
}
Vineesh TP
  • 7,755
  • 12
  • 66
  • 130