Uitableview Footer, Stop from Floating Over Content

UITableView Footer, Stop from floating over content

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

Is it possible to disable floating headers in UITableView with UITableViewStylePlain?

You should be able to fake this by using a custom cell to do your header rows. These will then scroll like any other cell in the table view.

You just need to add some logic in your cellForRowAtIndexPath to return the right cell type when it is a header row.

You'll probably have to manage your sections yourself though, i.e. have everything in one section and fake the headers. (You could also try returning a hidden view for the header view, but I don't know if that will work)

UITableview footer getting refreshed while scroll down?

Update your datasource with the selection and use the same data when scroll back to show the previous status.

Why UITableView sectionFooterView is floating at the bottom of screen,rather than attached to the bottom of the section group?

It's working as intended, both header and footer section views are attached to top and bottom of table view when you scrolling inside respective sections.



Related Topics



Leave a reply



Submit