How can you get the network performance counter in iOS?

I have an application that downloads several resources from the Internet each time it is downloaded (for example, rss channels and images). However, despite the fact that it takes several seconds to download all downloaded data, the performance indicator next to the Wifi / 3G symbol never appears. I assume that this should be displayed at any time when a network request is made, and many third-party applications have this display (e.g. Facebook). I make my request using a GCD for streams other than the UI, but I would still expect to show a spinner.

Do they have any suggestions on how to get the spinner to display?

+4
source share
1 answer

You are responsible for turning the network activity indicator on and off. For instance:

[UIApplication sharedApplication].networkActivityIndicatorVisible = YES; 
+10
source

All Articles