ParallaxHeader icon indicating copy to clipboard operation
ParallaxHeader copied to clipboard

Section header isn't moving with the tableview

Open MaikoHermans opened this issue 7 years ago • 6 comments

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?

MaikoHermans avatar Jan 04 '18 03:01 MaikoHermans

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

ajacquelin avatar Jan 08 '18 16:01 ajacquelin

@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.

AlexandrPonomarev avatar Feb 07 '18 15:02 AlexandrPonomarev

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.

rajaramanZencode avatar Mar 06 '18 09:03 rajaramanZencode

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

ajacquelin avatar Mar 06 '18 11:03 ajacquelin

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

does this code also work for the grouped table?

furiosFast avatar Oct 04 '18 18:10 furiosFast

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

ugenlik avatar Feb 07 '19 20:02 ugenlik