SVPullToRefresh icon indicating copy to clipboard operation
SVPullToRefresh copied to clipboard

Doesn't work for second time for Collection view

Open eramitkumarsoni opened this issue 9 years ago • 1 comments

Hi, First of all i would like to thank to share this wonderful Code. I have implemented the same on Collection view for first scroll it works proper but when i do the scroll for second time it doesn't call the function again.

I just have written in my code is

__weak MyClassName *weakSelf = self; [self.collectionView addInfiniteScrollingWithActionHandler:^{ [weakSelf parseAfterScroll]; }];

eramitkumarsoni avatar Jul 20 '15 16:07 eramitkumarsoni

You need to call [self.collectionView.infiniteScrollingView stopAnimating];

The problem is the state of InfitieScorllView is not being updated to stopped. It will not trigger the action handler unless the state is set to stopped. Calling stopAnimating after your action handler is completed resets the state.

pjryan93 avatar Sep 16 '15 17:09 pjryan93