This category provides a helper method to track whether or not the network activity indicator should be shown or hidden.
Static Public Member Functions | |
(void) | + showNetworkActivityIndicator: |
+ (void) showNetworkActivityIndicator: | (BOOL) | show |
Provides a cetralized way to show or hide the network activity indicator. It contains logic to reconcile competing requests to control the indicator.
Developers should use this method instead of [UIApplication sharedApplication].networkActivityIndicatorVisible
to show/hide the indicator for any network calls they make in their application. This will ensure that the indicator can keep track of, and properly reflects the state of, any outstanding network call regardless of which component issued the call.
show | Flag to determine visibility of indicator: YES to show, NO to hide. |