nicklockwood / iCarousel

A simple, highly customisable, data-driven 3D carousel for iOS and Mac OS
http://www.charcoaldesign.co.uk/source/cocoa#icarousel
Other
12k stars 2.58k forks source link

Carousel stops snapping to each UIButton after 'reloadData' is called #362

Closed pcaddict08 closed 11 years ago

pcaddict08 commented 11 years ago

I have a refresh button that gets new data to fill the carousel. After I get the new data, I reloadData, and the scrollview still scrolls, but doesn't snap to the entries.

pcaddict08 commented 11 years ago

My issue is actually more specific. When the following property is toggled, the scrollview doesn't snap to entries anymore.

        carousel_cricket.hidden = YES;

        carousel_cricket.hidden = NO;
nicklockwood commented 11 years ago

can you send a simple project that demonstrates the problem to support at charcoaldesign dot co dot uk? I'll take a look.

pcaddict08 commented 11 years ago

When I made a simple project to demonstrate it, it turns out that isn't the issue. -_- I'll keep working on it.

nicklockwood commented 11 years ago

When you said scrollview, did you mean the carousel, or an actual scrollview? iCarousel and scrollviews don't always get along unless you change the iCarousel animation timer runloop mode.

pcaddict08 commented 11 years ago

I mean the carousel. The issue also happens when you leave the view with the carousels(of which there are 3) and then come back.

pcaddict08 commented 11 years ago

Still having this issue. It seems to revolve around the 'reloadData' method. Do you have any idea why that would cause snapping to stop working?

pcaddict08 commented 11 years ago

Issue was resolved by setting this property in each carousel.

carousel.useDisplayLink = NO;