Status bars display a collection of status items that provide interaction with or feedback to the user, such as a menu or an image reflecting an application’s state. A system-wide status bar resides at the right side of the menu bar and is the only status bar currently available.
Questions tagged [uistatusbar]
449 questions
2
votes
2 answers
prefersStatusBarHidden not updating after calling setNeedsStatusBarAppearanceUpdate()
Different vcs inside my app show the status bar visible and others are hidden. This is set to YES in the info.pList
"View controller-based status bar appearance": YES
// also tried togging this between yes and no
"Status bar is initially…

Lance Samaria
- 17,576
- 18
- 108
- 256
2
votes
0 answers
UIStatusBarStyle lightContent not being honored on Modally Presented View Controller
I am attempting to change the text color of the status bar from black to white on a Modally Presented View Controller embedded in a Navigation Controller called ChildViewController
I am using the Chameleon framework for colors.
I can change the…

user-44651
- 3,924
- 6
- 41
- 87
2
votes
7 answers
Cannot hide status bar in a specific view controller in iOS 11, Swift 4
I've got a generic UIViewController in which I would like to hide the status bar. I've got more view controllers which should display the status bar, but this specific view controller should hide the status bar.
I've implemented the following…

WalterBeiter
- 2,021
- 3
- 23
- 48
2
votes
1 answer
Status Bar Disappears on Modal Presentation
In my iOS app, I am modally presenting a View Controller (AVPlayerViewController, in this case) using a transition.
At the start of the transition, the Status Bar disappears instantly and yanks up the contents of the app in an ugly jerk, before the…

Matt Mc
- 8,882
- 6
- 53
- 89
2
votes
1 answer
Hide status bar in Launch Screen
By default the launch screen provides a status bar. Is it possible to hide the status bar in launch screen like a Twitter app ( iOS ).

Mannopson
- 2,634
- 1
- 16
- 32
2
votes
3 answers
Status bar background color does not change to custom color
When I change status bar background color to native UIColor.gray it changes.
But when I want to use custom color it turn black color.
UIApplication.shared.statusBarView?.backgroundColor = UIColor.gray - this code workes correct. Status bar…

Said-Abdulla Atkaev
- 4,193
- 1
- 11
- 17
2
votes
1 answer
Making the status bar background transparent
Hi I am pretty new to iOS development. I needed to hide the white bar that appears under the status bar. I tried out solutions but could not really get it to work. What is the simplest solution to do this? Is there something that I can do in the app…

Prato Das
- 41
- 7
2
votes
2 answers
A way to calculate or get wifi strength on Swift on iOS 11
Looking for a way to either get or calculate the wifi strength of a device? Have seen examples of scraping the status bar but cannot get it to work on iOS 11:
func getSignalStrength() -> Int {
let application = UIApplication.shared
let…

Justin
- 717
- 1
- 9
- 15
2
votes
2 answers
How to set space between statusBar and navigationBar?
Is it possible at all? I simply add left and right bar button items. Is there a way to put some offset there?

Bartłomiej Semańczyk
- 59,234
- 49
- 233
- 358
2
votes
1 answer
Add UIView behind iPhone X status bar
I have an App, that doesn't have a UINavigationController and it has a UICollectionView with some cells as its feed.
To avoid the cells appearing behind the status bar, I added a UIView behind it.
Before iPhone X it was pretty simple to do this, as…

Ivan Cantarino
- 3,058
- 4
- 34
- 73
2
votes
1 answer
Cannot apply addConstraints:NSLayoutConstraint to self.window
I am trying to add background to status bar.
When i try to add VFL constraint to self.window i get error unexpected interface name: 'NSLayoutConstratint'
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary…

ios
- 165
- 1
- 11
2
votes
2 answers
Remove status bar color from a single screen if its set in app delegate
I am setting status bar colour in appdelegate class as below.
- (void)transitionToViewController:(UIViewController *)viewController
withTransition:(UIViewAnimationOptions)transition
{
self.window.rootViewController =…

birdcage
- 2,638
- 4
- 35
- 58
2
votes
1 answer
Change Status Bar from Light to Dark
In my code, I currently have a variable dayTime that is true if it's light outside and false if it's night. Accordingly, my code features a white scheme for day time and a dark scheme for nighttime. I need my status bar to be black if dayTime is…

ch1maera
- 1,369
- 5
- 20
- 42
2
votes
4 answers
How can I change my status bar text color. Screenshot attached
I want to change status bar text color to customer color like screenshot attached.
I have used this to make it light content -
[[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent];
But text color not changing. Can…

Dilip Lilaramani
- 1,126
- 13
- 28
2
votes
0 answers
NavigationController in TabBarController ignores topLayoutGuide when hiding status bar
I have a simple test app setup like so:
UITabBarController ---> UINavigationController --->[root to]---> UIViewController
The purple bar is simply just a UIView with a button inside it. Constraints on this view are:
Code inside ViewController to…

Dan
- 216
- 2
- 6