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.
If you need to make the footer view fixed at the bottom then you can not use a TableViewController . You will have to use UIViewController , put your tableView as a subview. Put the footer also as another subview and its done.
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 :)
- (id)init { self = [self initWithStyle:UITableViewStyleGrouped]; //Default is UITableViewStylePlain return self; }
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With