APCNetworkActivityIndicatorManager is a simple, thread-safe class that manages the iOS network activity indicator across multiple code paths. It solves the problem of interleaving calls to setNetworkActivityIndicatorVisible
leading to the network activity indicator being in an inconsistent state.
APCNetworkActivityIndicatorManager will also restore the indicator to the proper state after the app has been backgrounded and then opened again.
The easiest way to use APCNetworkActivityIndicatorManager is to simply copy the two source files into your project.
#import "APCNetworkActivityIndicatorManager.h"
[APCNetworkActivityIndicatorManager start]; // start the indicator
// ...
[APCNetworkActivityIndicatorManager stop]; // stop the indicator
See included LICENSE file