iOS SDK: make networkActivityIndicatorVisible behave as a semaphore
| Originator: | marcelofabri.mf | ||
| Number: | rdar://14500301 | Date Originated: | 19-Jul-2013 09:59 PM |
| Status: | Duplicate/7827522 | Resolved: | |
| Product: | iPhone SDK | Product Version: | 6.1 |
| Classification: | Feature (New) | Reproducible: | Always |
This is a duplicate of rdar://7827522 Summary: iOS SDK: make networkActivityIndicatorVisible behave as a semaphore Currently, networkActivityIndicatorVisible is a BOOL, simply YES or NO. This forces developers to create their own semaphore-style code to track number of active network connections and hide the indicator once all requests are complete. This in itself is not onerous, but when incorporating third-party code that also wants to be a good citizen and display the indicator appropriately, the separate implementations will interfere with each other, most notably hiding the indicator when requests are still active. Providing a standard "increment/decrement requests" functionality to the framework would allow developers to easily incorporate shared code and have this behavior "just work."
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!