samvermette/SVPullToRefresh

addInfiniteScrollingWithActionHandler not getting called

Opened this issue ยท 9 comments

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

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

+1

damln commented

+1, using version 0.4.1 with CocoaPods

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
}];

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

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

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.

kihab commented

Calling [self.tableView.infiniteScrollingView stopAnimating];

Fixed the issue for me.