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
1
vote
1 answer
UIStatusBar style consistent with UINavigationBar
Just to study the UI of UINavigationBar and UIStatusBar, I changed the Navigation Bar Style to Black, and unchecked the Bar visibility, i.e. Shows Navigation Bar, but the UIStatusBar style didn't change to lightContent.
It seems that if we hide the…

Anirudha Mahale
- 2,526
- 3
- 37
- 57
1
vote
1 answer
Short UINavigationBar with curved edges and transparent status bar
How do I achieve this effect with a navigation controller.
I have just one VC embedded in a UINavigationController and is it presented modally over another VC. So far so good but I want to achieve a look something like below where the nav bar is…

Anjan Biswas
- 7,746
- 5
- 47
- 77
1
vote
0 answers
I want to ignore statusbarstyle in overlay window
I have a window(A) with rootviewcontroller and will make another window(B) with other rootviewcontroller.
Window A is keyWindow, but I will overlay window B on window A. windowB is transparent.
When window B overlay on windowA, app's statusBarStyle…

Dev.MJ
- 95
- 8
1
vote
1 answer
In xcode 9: Why status bar set white when hide navigation bar?
Since Xcode update to 9 the status bar stay with white background if I hide the navigation bar:
navigationController?.setNavigationBarHidden(true, animated: false)
Before, it kept the color of the navigation bar.
The only solution was to create a…

Navtti
- 173
- 1
- 7
1
vote
2 answers
iOS StatusBarStyle not changing when set to light
I'm developing an app where i want the navigationBar to be invisible and have a dark background. I want the status bar colour to be white. I also want the status bar to be hidden initially.
I have set the Status Bar Style to Light
But the result i…
1
vote
3 answers
Navbar not animating while hiding but still animates while reappearing
I followed this answer and added a UIGestureRecognizer to show or hide the Navbar and Toolbar. Strangely, the Navbar is not silding while hiding but it still slides when it reappears. the toolbar is animating all the time.
I changed the code…

Saleh Altahini
- 373
- 2
- 12
1
vote
2 answers
How to change UIStatusBarStyle text color of a UIImagePickerController view
Trying to change UIStatusBarStyle of UIImagePickerController text color. Tried the following:
imagePicker.navigationBar.isTranslucent = false
imagePicker.navigationBar.barTintColor = .darkGray
imagePicker.navigationBar.tintColor =…

as diu
- 1,010
- 15
- 31
1
vote
0 answers
ViewController offset by 20 points when In-Call/Navigation Status Bar is dismissed
I'm not sure how to fix this and I've looked through quite a few answers on StackOverflow talking about resizing mask.
My top bar is a UIView that looks like a NavigationBar because I have animations that made it a lot easier to simulate a…

David
- 7,028
- 10
- 48
- 95
1
vote
0 answers
Swift 3: Control landscape status bar and navigation bar appearance
On an iPhone (compact) in landscape mode the status bar is hidden and the navigation bar height is less than in portrait. How can you prevent both of these behaviors with Swift 3 iOS 10? I have seen a number of answers but the solutions appear to…

Marcus Leon
- 55,199
- 118
- 297
- 429
1
vote
2 answers
UIStatusBarStyleLightContent for MFMailComposeViewController
Can you please suggest me, what is the proper way to setup the style of statusbar for MFMailComposeViewController in iOS >= 9.0?
I know, that [[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent]; is deprecated and I…

Sergei Belous
- 4,708
- 1
- 16
- 20
1
vote
2 answers
Hide status bar in all view controllers - IOS
If I want to hide the status bar of a single view controller subclass then I do this:
override var prefersStatusBarHidden: Bool {
return true
}
But what if I want to hide status bar by default in all view controllers subclass or not? Checking…

Kawin P.
- 187
- 1
- 11
1
vote
2 answers
Status bar color iOS
Somehow, no matter the query or number of answers I come across, I can't find one person who can say how to set the status bar color in iOS using Swift 3. I've seen all the suggestions where you add:
override var preferredStatusBarStyle:…

Kevin Dixson
- 419
- 1
- 4
- 10
1
vote
1 answer
How to hide status bar in specific view controller?
I have 3 view controllers which are added to a pageViewController so I can scroll between the 3. The issue is I want to display the status bar in only 1 of the viewControllers. So far I can hide from them all or show in them all.
I tried the…

user7097242
- 1,034
- 3
- 16
- 31
1
vote
0 answers
iOS7 UIWindow wrong height after status bar hidden
I added an UIWindow with a subView of an UIView to current key window.
CGFloat width = 35;
self.window = [[UIWindow alloc] initWithFrame:CGRectMake(0, [UIScreen mainScreen].bounds.size.height - width, width, width)];
self.window.backgroundColor…

jojoT
- 153
- 15
1
vote
1 answer
Showing NavigationBar and StatusBar when pushed from a view controller
I have a view controller that hides both navigationBar and statusBar. When the viewController pushes to a new viewController, where I want to show both navigationBar and statusBar, the result is like this:
In viewDidLoad, I do…

Ivan C Myrvold
- 680
- 7
- 23