Marlon Brando aka Ben
Marlon Brando aka Ben

Reputation: 933

How to stop NetworkActivityIndicator, after the data loading process

I'm loading data into a collectionview from a json feed. I have set a network activity indicator in my viewWillappear method.it works fine. But I want to stop it when data loading is finished.How can I do that.

Upvotes: 0

Views: 38

Answers (1)

Glorfindel
Glorfindel

Reputation: 22641

In the code which reloads your UICollectionView, you can just switch the network activity indicator off, e.g.

[collectionView reloadData];
[UIApplication sharedApplication].networkActivityIndicatorVisible = NO;

Upvotes: 1

Related Questions