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
Using Uiimagepickercontroller in Landscape Orientation
Application Crashed While Importing Songs from Ipod Library in iPhone for iOS 5.0
Uitextfield Securetextentry Bullets with a Custom Font
Autolayout + Rtl + Uilabel Text Alignment
How to Fill a Uibezierpath with a Gradient
How to Get iOS Device MAC Address Programmatically
Table View Images Never Being Released
Xcode Canvas for Swiftui Previews Does Not Show Up
Nstimer Timerwithtimeinterval: Not Working
Generate Random Numbers with a Given Distribution
Sharing Code Between Original iOS App and App Extension
Uistackview Distribution Fill Equally
Alertcontroller Is Not in the Window Hierarchy
Change Text Color of Items in Uiactionsheet - iOS 8
How to Detect Delete Key on an Uitextfield in iOS 8
Receiving Push Notifications While in Background
Core Data: Do Child Contexts Ever Get Permanent Objectids for Newly Inserted Objects