Linked Questions

3 votes
1 answer
611 views

Set StatusBarStyle in Swift 3 [duplicate]

I have set the ViewController-Based Status Bar Appearance to true in info.plist file. in my ViewController, I set override var preferredStatusBarStyle: UIStatusBarStyle { return .lightContent; } ...
JayVDiyk's user avatar
  • 4,527
66 votes
16 answers
105k views

Change Status Bar Background Color in Swift 3

In XCode 7.3.x ill changed the background Color for my StatusBar with: func setStatusBarBackgroundColor(color: UIColor) { guard let statusBar = UIApplication.sharedApplication().valueForKey("...
derdida's user avatar
  • 14.9k
16 votes
9 answers
25k views

iOS Custom Status Bar Background Color not displaying

I am trying to fill the status bar background color to orange using the following UINavigationBar.appearance().tintColor = UIColor.orangeColor() UINavigationBar.appearance().barTintColor = UIColor....
Simon's user avatar
  • 6,543
11 votes
10 answers
13k views

how to change statusbar color in one view controller using swift?

UIApplication.sharedApplication().setStatusBarStyle(UIStatusBarStyle.LightContent, animated: true) I use this one to change status bar to light in all app. But now I need to change it in just one View ...
Ivan A's user avatar
  • 293
1 vote
2 answers
3k views

Changing status bar background [duplicate]

I want the status bar to have a darker tone than the navigation bar? how can i implement this in Swift 2.0 in IOS 9 An exmaple is as attached: I am able to turn the status bars text to white but not ...
Minhal Khan's user avatar
1 vote
1 answer
430 views

Form Sheet iPhone Change Color at Top

I have a view controller I am presenting as a form sheet. On iPads, it looks as it should. In iPhones, it presents in fullscreen which is fine but the top section that covers the status bar is white. ...
user1715916's user avatar
1 vote
2 answers
468 views

how can i change the statusbar color in specifi view using swift?

InViewDidLoad UIApplication.sharedApplication().statusBarStyle = .LightContent override func viewWillDisappear(animated: Bool) { super.viewWillDisappear(animated) UIApplication....
Pavani's user avatar
  • 61
-1 votes
1 answer
457 views

Change color on the top of the Navigation Bar Swift

How do I change the color on the top of nav bar? Not really sure what that part is called, so apologies if the title of this question is therefore inaccurate
user3395936's user avatar
1 vote
2 answers
350 views

Change status bar background color

This has totally baffled me.. I've changed every color in every place to get the status bar background color to change but for some reason its stuck on the old color still. Is there any code to ...
Robert Mellor's user avatar
1 vote
1 answer
122 views

Changing MFMailComposeViewControllers status bar style

I can't get the status bar to display the clock battery etc in white. I read a lot of similar questions on stack overflow but most are old and not written in swift. The most recent answers I could ...
Lukasz's user avatar
  • 2,317
2 votes
1 answer
117 views

StatusBarStyle won't change on ios 13.5

This problem occurred after i did an update to xCode 11.5 (11E608c) and started testing on simulator with iOS 13.5, the statusBarStyle always stays Dark. When i test iOS 13.3 or 12.4 it works fine and ...
Marwen Jamel's user avatar
-3 votes
1 answer
128 views

StatusBar is white regardless of background color - Swift

My statusBar is white regardless of the background color. I tried this: override var preferredStatusBarStyle : UIStatusBarStyle { return .lightContent } but doesn't work for me.
setropjp's user avatar
-3 votes
2 answers
94 views

How can I give textcolor in status bar?

Text color of the wordings in status bar cannot be changed. Status Bar background color is able to change. How can I change the text color in that?
Nikil davis's user avatar