Peter Warbo
Peter Warbo

Reputation: 11700

Objective-C –Setting network indicator to visible after application is launched

Is it possible to set [[UIApplication sharedApplication] setNetworkActivityIndicatorVisible:YES]; in - application:didFinishLaunchingWithOptions:

It doesn't seem to work for me.

Upvotes: 1

Views: 568

Answers (2)

Ivan
Ivan

Reputation: 340

Check if it gets turned off as wcrane suggested but also make sure you don't have some other 3rd party library in your project that possibly does that. Also, try calling it after a delay of, say, 0.5s or something. E.g.

[self performSelector:@selector(turnOnNetworkIndicator) withObject:nil afterDelay:0.5]

Upvotes: 0

wcrane
wcrane

Reputation: 1195

It works for me, check if you turn it down at some place later.

Upvotes: 1

Related Questions