I would like to bind a NSProgressIndicator to HTTP activity in STTwitter library. Just wondering if there is a way to determine if a HTTP connection is currently being active?
Asked
Active
Viewed 28 times
1 Answers
1
In order to display a network activity indicator, I would keep track of the number of active connections.
Just increment this counter when you start a request, and decrease it in successBlock / errorBlock.
Start the animation when the counter changes from 0 to 1, and stop it when it changes from 1 to 0.

nst
- 3,862
- 1
- 31
- 40