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
6
votes
2 answers
Why statusbar turns to black when UIView is embedded in NavigationalViewController in iOS 7?
In iOS 7, statusbar should be transparent by default. I am making an app which is using tabs. One tab is showing a simple UIView. I want white statusbar so i just put my view background white and it worked fine. Second tab' view is embedded in…

Piscean
- 3,069
- 12
- 47
- 96
6
votes
2 answers
Status bar rotation notification
I want to find out when the status bar rotates. Receiving a screen rotation notification can confuse matters with orientations such as 'face up' and 'face down'. Managing rotation based on the orientation of the status bar is therefore the simplest…

Andrew
- 15,935
- 28
- 121
- 203
5
votes
5 answers
UIStatusBarStyleBlackTranslucent is not available on this device
I have a UIActionSheet for iPad which has three options :
Cancel
Camera
Photo Library
When I touch the "Photo Library" option I get a crash and a message
UIStatusBarStyleBlackTranslucent is not available on this device.
I read this…

Nitish
- 13,845
- 28
- 135
- 263
5
votes
4 answers
iOS - status bar randomly turns solid black
Developing an iPhone app.
I've got a really strange problem where, every once in a while, the status bar at the top of my app screen will turn solid black. Not like the black version of the status bar, but like a solid black rectangle with NO…

Gabe
- 163
- 2
- 7
5
votes
1 answer
iphoneX not call prefersStatusBarHidden
info.plist
UIViewControllerBasedStatusBarAppearance
UIViewController
override var prefersStatusBarHidden: Bool{
return true
}
when i use 6p ,it's ok
but
iphoneX ,it's can't call and StatusBar not hidden

loseDream
- 87
- 1
- 13
5
votes
1 answer
Status bar not the same color as the Navigation Bar
I have a Navigation Controller, where I am coloring my navigation bar with some color, and I want the status bar (which shows the carrier, wifi symbol, etc) to use the same color.
So in Info.plist, I have set View controller-based status bar…

rgamber
- 5,749
- 10
- 55
- 99
5
votes
3 answers
Change status bar style with animation
Since UIApplication.shared.setStatusBarStyle(.default, animated: true) is deprecated from IOS9 is it possible to change status bar style with animation on push? I cannot find any description in docs.

Danny
- 3,975
- 4
- 22
- 35
5
votes
3 answers
UINavigationBar hides under statusBar
In some UIViewController, UINavigationBar hides under status bar. Here is the screenshot:
But when I change View controller-based status bar appearance to YES then UINavigationBar looks perfect. Here is the screenshot:
But in this case, textColor…

Sudha Tiwari
- 2,499
- 26
- 50
5
votes
1 answer
How to change Status Bar (Style / Color) of UISplitViewController iOS 8
i am trying to change the status Bar Style of UISplitViewController
i used to do that with UINavigationBar
UINavigationBar.appearance().barStyle = UIBarStyle.Black
but the UISplitViewController does not have an appearance property
is there anyway…

Amr Mohamed
- 2,290
- 4
- 20
- 39
5
votes
2 answers
Swift UIApplication.setStatusBarStyle Doesn't work
Here's my implementation in a subclass of UIViewController:
override func viewWillAppear(animated: Bool) {
super.viewWillAppear(animated)
UIApplication.sharedApplication().setStatusBarStyle(UIStatusBarStyle.LightContent, animated:…

Matej
- 9,548
- 8
- 49
- 66
5
votes
5 answers
UIImagePickerController in iOS 7 status bar
In io7,the status bar on top a view is a nightmare.Fortunally i managed to make it work so it will be placed above the view.I did it like this:
- (void)viewDidLoad
{
[super viewDidLoad];
if ([[[UIDevice currentDevice] systemVersion]…

Theodoros80
- 796
- 2
- 15
- 43
5
votes
1 answer
iOS7 UIStatusBar blur not correct
I am using a UIToolbar for the controls at the top of the screen (There is no navigation controller) The toolbar has the look I want, however the status bar is entirely clear. I cannot seem to mimic the blur that the UIToolbar has in it's…

Kyle
- 1,662
- 2
- 21
- 38
5
votes
1 answer
How do I reposition the Nav/Toolbar when toggling Status Bar?
Environment: AutoLayout within iOS 6/7, Xcode 5.
I understand that to adjust the NavBar to accommodate the status bar, I set NavBar's background Image to 64 bits high (ref: WWDC 2013 Video Lecture #214).
Is there a convenient way to toggle the…

Frederick C. Lee
- 9,019
- 17
- 64
- 105
5
votes
1 answer
Statusbar and layout issues with UIImagePickerController after rotation
tl;dr: User interface layout is broken when rotating the iPad while taking a photo, if the app displays a status bar.
I've got an app that shows a status bar that should take photos through a UIImagePickerController.
I'm running this on an iPad 3,…

flo von der uni
- 738
- 9
- 19
5
votes
3 answers
Status bar tint color changes to black in iOS 6
I am apparently not understanding how to use the status bar tint in iOS 6. I have read this question:
Change statusbar tint colour
but implementing the solutions suggested there has not resolved the issue.
I have configured the settings in the…

geraldWilliam
- 4,123
- 1
- 23
- 35