Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to turn on the network indicator in the iOS status bar? [duplicate]

People also ask

Why does my iPhone have two signal bars?

Dual cell signals On models with Dual SIM, the upper row of bars indicates the signal strength of the line you use for cellular data. The lower row of bars indicates the signal strength of your other line.

How do I check my network status on my iPhone?

Go to Settings > Wi-Fi and make sure that Wi-Fi is on. Tap the name of your Wi-Fi network to join. A blue checkmark beside a network name means that you're connected.


Swift

UIApplication.sharedApplication().networkActivityIndicatorVisible = true

Swift 5 , Swift 4.x , Swift 3.x

UIApplication.shared.isNetworkActivityIndicatorVisible = true

Update for iOS 13, 14

There will be no network indicator displayed from iOS 13.

The deprecation message says:

Provide a custom network activity UI in your app if desired.


[[UIApplication sharedApplication] setNetworkActivityIndicatorVisible:YES];