Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

UITableView header that stays at top

I'd like to have a tableview header that can remain at the top of the table, even when the user has scrolled down. I tried using a section header for this, but my table has multiple sections so I can't guarantee that one particular header will be at the top.

What should I do?

like image 428
WoodenKitty Avatar asked Nov 05 '22 11:11

WoodenKitty


1 Answers

From your parent view, add the table view and a separate "header" view. Position the table view origin below the header view's origin.

like image 75
Alex Reynolds Avatar answered Nov 12 '22 20:11

Alex Reynolds