WhoIsDT
WhoIsDT

Reputation: 705

How to unfix tableview section header in table view

So i have sticky header at the top of view. Then i have table view. It starts from y:135

I need to do something to allow first section header to sroll up with its content. How i can make it?

I decide to make table view padding top if it possible, and than start table view from x:0 y:0

OR

To unfix section header and allow to scroll with content, or maybe there is another way to do that? Here is my screens:

enter image description here

enter image description here

OR Maybe the correct way will be to FAKE fist section with custom row height? and make it unvisible, and it will be my padding?

Upvotes: 0

Views: 195

Answers (1)

biloshkurskyi.ss
biloshkurskyi.ss

Reputation: 1436

allow first section header to sroll up with its content

It's related to UITableViewStyle. When the UITableViewStyle property of the table is set to UITableViewStylePlain. If you have it set to UITableViewStyleGrouped, the headers will scroll up with the cells. Based on this question.

to FAKE fist section with custom row height?

I am not sure that it's a good solution.

Upvotes: 1

Related Questions