I am trying to stop a UIActivityIndicator from animating when the visible cells have all been loaded. The indicator starts when I make a call to a remote server and I am currently stopping it right before return cell
in:
- (UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath
This is not perfect though because there are times where this method does not get called so the activityIndicator does not get stopped.
I have looked through the class reference for UICollectionView
and haven't been able to come up with a solution.
The accepted answer to this post is what I am looking for but I can't seem to tweak it to work for a collection view.
How to detect the end of loading of UITableView
Any thoughts on how I might stop the activity indicator at the appropriate time?