UncleAlfonzo
UncleAlfonzo

Reputation: 165

Unable to hide network activity indicator

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

Answers (2)

N S
N S

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

Mundi
Mundi

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

Related Questions