Reputation: 12184
I have a tableview where some gap is left after the cells are over. I would like the table's footer to take that space.
How do I accomplish this ?
Upvotes: 1
Views: 175
Reputation: 19343
The footer of a table is automatically displayed after the last of the cells. If you want to make sure that the footer fills all possible space from the last cell to the bottom of the view then just make the footer the height of the screen. If you want to dynamically arrange any subviews in your footer so that they are all visible then you probably need to add up the height of all your cells to determine how much of the footer is visible.
Upvotes: 1