WoodenKitty
WoodenKitty

Reputation: 6529

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?

Upvotes: 5

Views: 2516

Answers (1)

Alex Reynolds
Alex Reynolds

Reputation: 96927

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

Upvotes: 2

Related Questions