Skip to content
Manage calls to iOS network activity indicator.
Objective-C
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
MDCNetworkActivityManager.xcworkspace
MDCSampleApp
.gitignore
MDCNetworkActivityManager.h
MDCNetworkActivityManager.m
README.md

README.md

MDCNetworkActivityManager endorse

A singleton class which manages requests to UIApplication's network activity indicator, allowing the user to increment/decrement requests to display it in a thread-safe way.

Usage

// Request that the indicator be displayed.
[[MDCNetworkActivityManager defaultManager] requestIndicator];

// Release the request on the indicator.
// If the total number of requests is below zero, the indicator
// is hidden.
[[MDCNetworkActivityManager defaultManager] releaseIndicator];

Check out the sample application for an example.

License

MIT-license. Use it as you please.

Something went wrong with that request. Please try again.