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
3
votes
1 answer
Best Practice to handle the extended height status bar with a WantsFullScreenLayout app?
In an app which has the wantsFullScreenLayoutset to YES, what is the best practice to handle an extended height status bar, i.e. with the extra status bar presented when a phone call or a VoIP app is present, or when the personal hotspot feature is…

below
- 929
- 6
- 26
3
votes
1 answer
View automatically adjusting upon changing applications with Status Bar hidden
I have a UIViewController that is conditionally hiding the status bar in the application, but a problem I'm having is that when I have the status bar hidden and I change to a different application with a status bar, the view moves up 20 pixels to…

RileyE
- 10,874
- 13
- 63
- 106
2
votes
2 answers
Take screenshot programmatically, without the status bar
I wonder if there is a way to take a screenshot of current view screen with everything on it - navigationbar, content, tabbar - but except the statusbar, is there a way to do that?

tom
- 14,273
- 19
- 65
- 124
2
votes
2 answers
Change frame of view when status bar height will be changed?
I want to change the position of UIImageView and button in view controller when status bar height will be increased.
I have changed the view frame by comparing status bar height and I also know that below method will be called when status bar frame…

Aakil Ladhani
- 984
- 9
- 32
2
votes
1 answer
iOS 16 text in status bar is white even when UIStatusBarStyle is set to DarkContent
Problem
Currently I'm developing an application and on iOS 16 the text color of the statusbar is often white while the background color of the customized header has a light color. In the code of the customized header there's a check that should set…

MobileAppDev
- 21
- 3
2
votes
1 answer
IOS Shared Application hide StatusBar
I am hiding the Status bar with the below code and it gives me a memory warning level1 . It does nothing to the app itself during the memory warning but I do not like to have such things happening. Is there somthing I am doing wrong? or and con…

FreeAppl3
- 858
- 1
- 15
- 32
2
votes
1 answer
Hiding UIStatusBar leaves empty blue bar across screen
I have a portrait iPhone app, which a hidden navigation bar controlling the flow between views. In one view, I need to rotate the view 90 degrees to landscape, and I want to hide the status bar.
The problem is that whilst the status bar is…

theDuncs
- 4,649
- 4
- 39
- 63
2
votes
0 answers
UIStatusBarAnimation style .slide not working in iOS 15
Following with the UIViewController worked until iOS 15. Status bar animated with the 'slide' method. Now it just fades away.
self.setNeedsStatusBarAppearanceUpdate()
override final var prefersStatusBarHidden : Bool {
return false
}
override…

Gizmodo
- 3,151
- 7
- 45
- 92
2
votes
1 answer
How to change the color of status bar to a custom color other than light and dark in iOS 14, Swift 5?
I want to change the color of status bar (battery percentage, time and wifi, etc) to a custom color (red, yellow, blue, etc) other than .lightContent and .darkContent that Apple offers. Is that even possible to do so? if yes please help me to solve…

Ulugbek
- 127
- 3
- 15
2
votes
2 answers
Hide Status Bar in iOS 13
Hiding Status Bar using the usual way doesn't work because the method is deprecated.
The status bar has to be hidden in one view controller, but not all of them. How can I hide/show it programmatically?

Andrea Garau
- 69
- 2
- 5
2
votes
1 answer
Enable UIiStatusBar for iPad, disable for iPhone in Universal iOS app
I have a Universal iOS application, I want the status bar (UIStatusBar) to appear when the app is installed on the iPad but not when installed on the iPhone.
Currently my solution is to set UIStatusBarHidden in the app-info.plist to true (which…

psy
- 2,791
- 26
- 26
2
votes
0 answers
how to fix the crash "UIStatusBarDisplayItemState updatePlacement "?
i get the crash when excute the code [_UIStatusBarDisplayItemState updatePlacement] from the crash log, the crash log says The item state should have been data updated before updating its placement,and the crash happens in iOS 12.x

xiaotao Li
- 53
- 7
2
votes
1 answer
Objective-C/Xcode Status Bar Color same as Nav Bar Color
I am trying to make my status bar the same color as my navigation bar, and not the same color as my background. I haven't found any solutions that work with iOS 12 Objective-C and aren't going to get my app banned from the app store.
This is how I'm…

Oliver Leopold
- 51
- 5
2
votes
3 answers
Attempting to Change the UIStatusBar Tint Color
I am trying to change the UIStatusBar tint color in a specific UIViewController.
Here is my code:
override var preferredStatusBarStyle: UIStatusBarStyle {
return .lightContent
}
override func viewWillAppear(_ animated: Bool) {
…

Cal
- 422
- 6
- 20
2
votes
3 answers
UIStatusBarStyle doesn't change
I'm working on a swift app and I wanna change the UIStatusBarStyle according to the app's theme (there are 2 options - light and dark theme). I have set View controller-based status bar appearance to NO in the info.plist and in the UIViewController…

Dani
- 3,427
- 3
- 28
- 54