UITableView Footer, Stop from floating over content

Jason picture Jason · Apr 21, 2011 · Viewed 50.1k times · Source

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.

Answer

Jason picture Jason · Apr 22, 2011

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 :)