SVPullToRefresh icon indicating copy to clipboard operation
SVPullToRefresh copied to clipboard

addInfiniteScrollingWithActionHandler not getting called

Open funwithprogramming opened this issue 9 years ago • 9 comments

addInfiniteScrollingWithActionHandler is not getting called second time and network indicator keeps on animating. What could be the problem?

funwithprogramming avatar Mar 15 '15 10:03 funwithprogramming

+1, Same issue too, I can load more just one time. The other time, the indicator stuck animating, and no action is being called

eridbardhaj avatar Mar 20 '15 15:03 eridbardhaj

+1

BillHu avatar Mar 24 '15 07:03 BillHu

+1

divya-ai avatar Mar 28 '15 15:03 divya-ai

+1, using version 0.4.1 with CocoaPods

damln avatar Apr 08 '15 10:04 damln

Be sure you called stopAnimating for infiniteScrollingView. From readme:

[tableView addInfiniteScrollingWithActionHandler:^{
    // append data to data source, insert new cells at the end of table view
    // call [tableView.infiniteScrollingView stopAnimating] when done
}];

VitalyTimofeev avatar Apr 29 '15 13:04 VitalyTimofeev

+1, it's not called, so the indicator would keep spinning.

alanfeng99 avatar Jun 26 '15 09:06 alanfeng99

I'm facing the same issue, the indicator keeps loading and action handle not fired second time.

amna-malik avatar Jun 30 '15 09:06 amna-malik

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

Calling [self.tableView.infiniteScrollingView stopAnimating];

Fixed the issue for me.

kihab avatar Jun 21 '16 15:06 kihab