when using iCarousel with iCarouselTypeRotary style, it all seems to work well except that a copy of the intial view always sits in the background (as if there were an additional iCarousel behind the first one that doesnt respond to events)

Curiously enough this doesnt happen the first time the app is run on a device. Perhaps this has something to do with setting the view items imageView's image with SDWebImage - as this is the only thing I can imagine making any difference of this sort.

Any suggestions welcome

Thanks

Tudor

有帮助吗?

解决方案

I think the most likely explanation is that it's exactly what it looks like - you are somehow adding multiple copies of the carousel to your view.

Are you adding the carousel programatically in the viewDidAppear method? And if so, do you check if it already exists, or remove the old one if it does?

Try setting a breakpoint to see how many times the code to add the carousel is executed.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top