Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Loading Indicator in Status Bar iOS

I'm trying to figure out what the loading circle animation in the status bar is. A lot of apps, when they load data, have a spinner in the status bar to indicate that the app is loading data, but I can't figure out what its called to implement it. Can someone tell me what it is called?

If you don't know what I'm talking about, but have an iOS device, try loading a web page in Safari and look at the spinner in the status bar. Thats what I'm talking about.

Here is an screenshot I took Its the spinner in the statusbar.

like image 238
RileyE Avatar asked Jun 17 '12 00:06

RileyE


People also ask

What is the use of Progress Indicator?

Progress bars are used to show progress of a task. For example, when you are uploading or downloading something from the internet, it is better to show the progress of download/upload to the user.

What does network activity mean on my Iphone?

Website Network Activity shows domains that have been contacted by websites you've visited within apps in the past 7 days. Most Contacted Domains lists the web domains most frequently contacted by all your apps, either directly or from in-app web content, in the past 7 days.


2 Answers

I think what you are looking for is:

[UIApplication sharedApplication].networkActivityIndicatorVisible = YES; 

Swift 3

UIApplication.shared.isNetworkActivityIndicatorVisible = true 

as doc'd here: https://developer.apple.com/documentation/uikit/uiapplication/1623102-isnetworkactivityindicatorvisibl

like image 107
Chris Trahey Avatar answered Sep 24 '22 07:09

Chris Trahey


Same as above just in Swift:

UIApplication.sharedApplication().networkActivityIndicatorVisible = true 
like image 39
RhodanV5500 Avatar answered Sep 22 '22 07:09

RhodanV5500