maxep / MXParallaxHeader

Simple parallax header for UIScrollView
MIT License
1.73k stars 251 forks source link

Items duplicates when added second time #105

Closed vadimleonov closed 5 years ago

vadimleonov commented 5 years ago

How to correctly reasign tableView.parallaxHeader.view ?

I have a problem when I trying to reassign, it always duplicates views:

tableView.parallaxHeader.view = customView
tableView.parallaxHeader.view = customView1
tableView.parallaxHeader.view = customView2

image

shapeofnoise commented 5 years ago

The same problem: https://github.com/maxep/MXParallaxHeader/issues/102 You have to manually remove old view from superview before adding a new one, at least until they fix it. From the code it looks just like a bug.

maxep commented 5 years ago

Has been fixed :)