Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Section header isn't moving with the tableview #21

Open
MaikoHermans opened this issue Jan 4, 2018 · 6 comments
Open

Section header isn't moving with the tableview #21

MaikoHermans opened this issue Jan 4, 2018 · 6 comments

Comments

@MaikoHermans
Copy link

when adding section headers and using the Plain style for the tableview the header will remain on the location where it starts before you make the parallax header smaller.

Is there a way to fix this so it moves smoothly with the header?

@ajacquelin
Copy link

ajacquelin commented Jan 8, 2018

I had the same issue, you can fix it by subclassing UITableView, here is a example:
https://gist.github.com/ajacquelin/965e08322fdf60bd0cc82b4b9f9f135a

@AlexandrPonomarev
Copy link

AlexandrPonomarev commented Feb 7, 2018

@ajacquelin Could not you throw off your code, which solved this problem. I tried to implement a custom tableView class, as in the example by reference, but it did not help.

@rajaramanZencode
Copy link

when adding section headers and using the Plain style for the tableview the header will remain on the location where it starts before you make the parallax header smaller.

@ajacquelin
Copy link

Here is a gist with the swift implementation: https://gist.github.com/ajacquelin/965e08322fdf60bd0cc82b4b9f9f135a

@furiosFast
Copy link

Here is a gist with the swift implementation: https://gist.github.com/ajacquelin/965e08322fdf60bd0cc82b4b9f9f135a

does this code also work for the grouped table?

@ugenlik
Copy link

ugenlik commented Feb 7, 2019

@ajacquelin saved me a couple of hours development time , worked on grouped table too    

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants