Reputation: 165
I'm attempting to hide the network activity indicator using the code below. From everything I've gathered, this should be a rather easy task however I've been completely unsuccessful. I've tried implementing it in my app delegate and the view controller itself to no luck.
UIApplication.sharedApplication().networkActivityIndicatorVisible = false;
Has anybody had this problem before? is there a solution?
EDIT:
Through some rigorous debugging I was able to find the source of the problem: Parse Analytics. Unfortunately they haven't yet allowed a feature to turn this off.
Upvotes: 1
Views: 720
Reputation: 2603
Parse enables the network activity indicator during queries, uploads, etc automatically.
You can disable the default behaviour using PFNetworkActivityIndicatorManager:
PFNetworkActivityIndicatorManager.sharedManager().enabled = false;
Upvotes: 1
Reputation: 80265
You can avoid confusion about what service is using the internet by letting Parse do its thing (most likely you can do nothing about it) and indicate loading in your app via your own UIActivityIndicatorView
.
Upvotes: 0