UITableView Footer, Stop from floating over content
I would like to make my UITableView Footer stop floating over my content, as is the default activity. I want my footer to be.. well.. a footer. Always the last view to be displayed at the end of my tableview. :)
Same thing with the header too actually.
Is there any easy way to disable it from floating over top of the table view as you scroll?
Thank you everyone, I couldn't find an answer elsewhere.
Solution 1:
Ok, it turns out that if you set the footer view via blahblahtableView.tableFooterView = someview;
, the footer will not scroll with the table.
However, if you create your footer using viewForFooterInSection
, it WILL follow your view around and stick on the bottom of the screen.
Not sure why I couldn't find this answer sooner. Sorry all :)
Solution 2:
- (id)init {
self = [self initWithStyle:UITableViewStyleGrouped]; //Default is UITableViewStylePlain
return self;
}