Questions tagged [uistatusbar]
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.
            449
            questions
        
        
            1087
            votes
        
        
            61
            answers
        
        
            672k
            views
        
    How to change Status Bar text color in iOS
                My application has a dark background, but in iOS 7 the status bar became transparent. So I can't see anything there, only the green battery indicator in the corner. How can I change the status bar ...
            
        
       
    
            282
            votes
        
        
            25
            answers
        
        
            147k
            views
        
    preferredStatusBarStyle isn't called
                I followed this thread to override -preferredStatusBarStyle, but it isn't called. 
Are there any options that I can change to enable it? (I'm using XIBs in my project.)
            
        
       
    
            218
            votes
        
        
            27
            answers
        
        
            154k
            views
        
    iOS 7: UITableView shows under status bar
                The first screen of my application is a UITableViewController without a navigation bar, which means that the content flows under the status bar so there's a lot of text collisions. I've adjusted both ...
            
        
       
    
            203
            votes
        
        
            33
            answers
        
        
            244k
            views
        
    How to set Status Bar Style in Swift 3
                I'm using Xcode 8.0 beta 4.
In previous version, UIViewController have method to set the status bar style
public func preferredStatusBarStyle() -> UIStatusBarStyle
However, I found it changed to ...
            
        
       
    
            111
            votes
        
        
            19
            answers
        
        
            85k
            views
        
    UIStatusBarStyle PreferredStatusBarStyle does not work on iOS 7
                In my iPhone application built with Xcode 5 for iOS 7 I set UIViewControllerBasedStatusBarAppearance=YES in info.plist, and in my ViewController I have this code:
-(UIStatusBarStyle) ...
            
        
       
    
            100
            votes
        
        
            10
            answers
        
        
            102k
            views
        
    How to prevent UINavigationBar from covering top of view in iOS 7?
                After updating to Xcode 5, the navigation bars in all of my app's views have shifted down. Here are some screenshots, the first showing everything in the view as it's pulled down, and the second ...
            
        
       
    
            99
            votes
        
        
            6
            answers
        
        
            47k
            views
        
    Changing the status bar text color in splash screen iOS 7
                I know that are already some stackoverflow questions that say how to change the status bar for all view controllers. I am currently changing the color of status bar this way:
if(IS_IOS7)
    [[...
            
        
       
    
            87
            votes
        
        
            11
            answers
        
        
            63k
            views
        
    UIStatusBarStyle not working in Swift
                I'm trying to change the Status Bar color in my Swift app to white, but am hitting a brick wall. I have 3 ViewControllers that are each embedded in a NavigationController (could that be the issue? I'...
            
        
       
    
            66
            votes
        
        
            16
            answers
        
        
            102k
            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("...
            
        
       
    
            48
            votes
        
        
            14
            answers
        
        
            64k
            views
        
    UINavigationBar/Status Bar issue in IOS7
                Final EDIT
(Rather than having an overly long question with edits making a final edit for clarification, please see other edits if needed).
Controller Setup
I have an application that is setup as ...
            
        
       
    
            45
            votes
        
        
            14
            answers
        
        
            45k
            views
        
    Status Bar showing black text, only on iPhone 6 iOS 8 simulator
                I'm trying to convert my iOS 7 app to iOS 8 in Xcode 6 GM, and when i run it on the iPhone 5s or lower simulators with iOS 8 everything is fine, but on the iPhone 6 and 6 Plus simulators, the Status ...
            
        
       
    
            44
            votes
        
        
            5
            answers
        
        
            59k
            views
        
    IOS7 Status bar hide/show on select controllers
                I would like to show and hide the Status bar on some controllers. Can this be done or is it more of an overall app setting.
I have seen many posts/questions about the plist update:
View controller-...
            
        
       
    
            38
            votes
        
        
            5
            answers
        
        
            23k
            views
        
    Loading Indicator in Status Bar iOS
                I'm trying to figure out what the loading circle animation in the status bar is. A lot of apps, when they load data, have a spinner in the status bar to indicate that the app is loading data, but I ...
            
        
       
    
            33
            votes
        
        
            7
            answers
        
        
            30k
            views
        
    Proper way to hide status bar on iOS, with animation and resizing root view
                Consider a view controller that needs to slide out (or hide) the status bar when a button is clicked.
- (void) buttonClick:(id)sender
{
    [[UIApplication sharedApplication] setStatusBarHidden:YES
  ...
            
        
       
    
            33
            votes
        
        
            5
            answers
        
        
            7k
            views
        
    When hiding the statusbar my navigation bar moves up in iOS7
                I am trying to hide the statusbar but maintain the "bigger" navigationbar height. Right now when I hide the statusbar by setting - (BOOL)prefersStatusBarHidden to YES and then calling [self ...
            
        
       
    
            29
            votes
        
        
            4
            answers
        
        
            49k
            views
        
    How to show an icon in the status bar when application is running, including in the background?
                I want to put an icon in the status bar when ever my application is running, including when it is running in the background. How can I do this?
            
        
       
    
            27
            votes
        
        
            11
            answers
        
        
            18k
            views
        
    Remove path in status bar in TinyMCE4
                I have just migrated from TinyMCE3 to TinyMCE4 and I wonder how to remove the path in the status bar. But I want to keep my status bar in order to have the resize functionnality.
With TinyMCE3 we can ...
            
        
       
    
            24
            votes
        
        
            6
            answers
        
        
            9k
            views
        
    Can't get scrollsToTop working on iOS7
                I'm targeting iOS7 in my latest app, and tapping on the status bar doesn't seem to scroll a tableView or collectionView to the top.
I've set self.tableView.scrollsToTop = true and still nothing ...
            
        
       
    
            22
            votes
        
        
            5
            answers
        
        
            19k
            views
        
    iOS 13 status bar style
                I want to change the status bar style on a per-ViewController level on iOS 13. So far I didn't have any luck.
I define UIUserInterfaceStyle as Light in info.plist (as I do not want to support dark ...
            
        
       
    
            21
            votes
        
        
            4
            answers
        
        
            4k
            views
        
    UIStatusBarStyle changes after displaying a UIWindow over UIStatusBar
                I am displaying a UIWindow over the UIStatusBar, by default the UIStatusBarStyle is set to UIStatusBarStyleLightContent, but when I display the UIWindow the UIStatusBarStyle switches to the black ...
            
        
       
    
            21
            votes
        
        
            2
            answers
        
        
            4k
            views
        
    Is there a way to hide "Back to Safari" from status bar in iOS9?
                How to hide this < Back to Safari from status bar programmatically?
I'm getting it in my app – as I'm going out from my app if a user wants to login with their Facebook account.
Here's the ...
            
        
       
    
            18
            votes
        
        
            6
            answers
        
        
            17k
            views
        
    UISearchBar overlaps status bar in iOS
                I (just like everyone else here) am running into the same Status Bar overlap issue that everyone else is, with a little twist, and that is why I opening a new question about this. 
There seems to be ...
            
        
       
    
            15
            votes
        
        
            8
            answers
        
        
            34k
            views
        
    Change the status bar background color color past iOS 7
                I want to change background color of status bar on iOS 7, and I'm using this code:
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
    [...
            
        
       
    
            15
            votes
        
        
            3
            answers
        
        
            10k
            views
        
    Auto Layout and in-call status bar
                I'd like to ask about Auto Layout and in-call status bar. Here's a simple scenario that demonstrates my problem:
Create project with "Use Storyboards" enabled
Add "View Controller" and enable its "Is ...
            
        
       
    
            14
            votes
        
        
            1
            answer
        
        
            8k
            views
        
    How to set launch screen status bar color to white?
                My application's launch screen has a dark background color, so I'd like to set the status bar color to white while it's showing.
This differs from the question asked in How to change status bar style ...
            
        
       
    
            14
            votes
        
        
            2
            answers
        
        
            9k
            views
        
    App called -statusBar or -statusBarWindow on UIApplication
                I'm trying to build my app with Xcode 11 beta 6 and iOS 13 beta 8 but it throws this error once it starts to run:
  Terminating app due to uncaught exception 'NSInternalInconsistencyException', ...
            
        
       
    
            13
            votes
        
        
            5
            answers
        
        
            17k
            views
        
    Changing the Color of the Status Bar [duplicate]
                I am trying to change the color of the status bar to like a blue, or some other color. 
Is this possible, or does Apple not allow it?
            
        
       
    
            13
            votes
        
        
            2
            answers
        
        
            3k
            views
        
    iOS: Specify status bar text color when using UINavigationBarAppearance now barstyle is ignored
                Problem
I have an app that has different colour navigation bars for different flows. Some navigation bars have a light background and require black status bar text. Others have a darker navigation bar ...
            
        
       
    
            12
            votes
        
        
            5
            answers
        
        
            11k
            views
        
    iOS 7 - Hide status bar on certain view
                This is a rather unique question. I have searched for hours and could not find the answer. I want ALL UIViewControllers in my app to have the UIStatusBar visible. But on a certain UIViewController, ...
            
        
       
    
            11
            votes
        
        
            2
            answers
        
        
            9k
            views
        
    How we can set the Light Content style of Status Bar in iOS 9 for whole application?
                I want to apply Light Content style to the whole application.
Following method is deprecated in iOS 9 without the replacement method.
  -setStatusBarStyle:animated:
  
  Sets the style of the status ...
            
        
       
    
            11
            votes
        
        
            4
            answers
        
        
            4k
            views
        
    iPhone : HOWTO move status bar with pan gesture
                Like Instagram - EXPLORE Tab, when I scroll the content, the status bar moves as well.
Always called FullScreenScroll, like here, when the user scrolls the tableView, the NavigationBar & TabBar ...
            
        
       
    
            11
            votes
        
        
            3
            answers
        
        
            3k
            views
        
    Hiding the Status Bar for an iPhone app running on iPad
                My iPhone app requires that the status bar be hidden at all times. This is generally easy to do, and it works if I only run the app on an iPhone. However, if I run the app on an iPad, the status bar ...
            
        
       
    
            11
            votes
        
        
            3
            answers
        
        
            5k
            views
        
    iOS8: How do I make statusBar opaque after navigationBar is hidden using hidesBarsOnSwipe?
                I am building iOS8 app. On my tableview controller, I am using self.navigationController.hidesBarsOnSwipe = YES, to hide the navigationBar on swipe up gesture. It is working nicely, but my statusBar ...
            
        
       
    
            11
            votes
        
        
            4
            answers
        
        
            566
            views
        
    UIStatusBar appear in black in UITabBarViewController ios11
                The issue is simple :
The Application is based on UITabBarViewController 
3 Tabs in the controllers 
TabBar Views are configured in viewDidLoad for the
UITabBarViewController
On launch, the ...
            
        
       
    
            10
            votes
        
        
            6
            answers
        
        
            3k
            views
        
    setStatusBarHidden:NO after XIB load covers UINavigationBar
                When setStatusBarHidden:NO is set before the view loads, the UINavigationBar and other elements appear aligned immediately below the StatusBar as they should. However, when setStatusBarHidden:NO is ...
            
        
       
    
            10
            votes
        
        
            6
            answers
        
        
            10k
            views
        
    How to change iOS status bar color in child view controller
                (iOS 7 Xcode 5.0.2)
I used following methods, successfully change the status bar color to white on root view controller
[self setNeedsStatusBarAppearanceUpdate]; // Update status bar style
-(...
            
        
       
    
            10
            votes
        
        
            2
            answers
        
        
            2k
            views
        
    How to show double height green statusbar (In-Call) in foreground app on device?
                There's a lot of questions here asking for displaying a red recording bar while in background. It's totally clear I should use AVAudioSession category AVAudioSessionCategoryPlayAndRecord for that. My ...
            
        
       
    
            10
            votes
        
        
            1
            answer
        
        
            7k
            views
        
    Status bar frame changes without any notification
                I have registered to receive notifications about the status bar frame changes, but they are never received. 
Here is how I register for the notification:
[[NSNotificationCenter defaultCenter] ...
            
        
       
    
            10
            votes
        
        
            1
            answer
        
        
            4k
            views
        
    Why Status Bar rotates and view remains portrait
                My rootViewController is a UITabbarController and contains UINavigationControllers.
In order to restrict rotation, since iOS6, on some but not all views, I have subclassed both of the these ...
            
        
       
    
            9
            votes
        
        
            6
            answers
        
        
            8k
            views
        
    UISearchController changing status bar color on invocation
                I have the following code in my app, specifically in viewDidLoad: that sets up my UISearchController. 
self.searchController = [[UISearchController alloc] initWithSearchResultsController:nil];
self....
            
        
       
    
            9
            votes
        
        
            4
            answers
        
        
            5k
            views
        
    want to Implement Sliding side menu with sliding status bar also. in iOS
                I am interested to implement left side menu in my application I have used NVSlideMenuController for it. and it works fine.
But I want to modify it. I want to slide status bar with ...
            
        
       
    
            9
            votes
        
        
            1
            answer
        
        
            1k
            views
        
    Status Bar appears in QLPreviewController after toolbar reappers
                Status bar is initially hidden in Info.plist with "Status bar is initially hidden" set to YES and "View controller-based status bar appearance" set to NO.
But when I present a QlPreviewController, ...
            
        
       
    
            8
            votes
        
        
            1
            answer
        
        
            2k
            views
        
    UIStatusBarStyleLightContent Not setting battery white?
                I am using programatically setting my status bar white with :
[[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent];
However the battery icon is still green? Where ...
            
        
       
    
            8
            votes
        
        
            1
            answer
        
        
            5k
            views
        
    iPhone6 status bar showing zoomed in app but not on home screen [closed]
                After some initial testing, our app on the iPhone6 we are seeing that the status bar (and maybe the whole app) is showing the zoomed size. When I say zoomed, I am referring to the desktop setting ...
            
        
       
    
            8
            votes
        
        
            1
            answer
        
        
            5k
            views
        
    Presenting a view controller without changing the status bar color, like UIAlertController
                When performing some network operations, I present a modal view controller (similar to MBProgressHUD but as a view controller) to prevent user interaction and indicate progress. 
The view controller ...
            
        
       
    
            7
            votes
        
        
            2
            answers
        
        
            29k
            views
        
    autoresize of uiview
                I have a UIView in a UITabController.
And there is a UITableView in it.
When toggling in call status bar it doesn't do anything and the view is not automatically resized.
It assumes the right size ...
            
        
       
    
            7
            votes
        
        
            2
            answers
        
        
            3k
            views
        
    How to create a "return to app" status bar when app goes to the background?
                When my app moves to the background while either playing audio or recording audio, I would like to provide something like the the green "In Call" status bar that appears when you are in a call and ...
            
        
       
    
            7
            votes
        
        
            1
            answer
        
        
            879
            views
        
    Status bar background disappears while hiding on iOS 11
                As of iOS 11, the status bar in my app is misbehaving when I dismiss it. The background of the status bar turns clear while the status bar is being dismissed. It didn't do this in iOS 10.
I've ...
            
        
       
    
            7
            votes
        
        
            2
            answers
        
        
            1k
            views
        
    StatusBar in searchController and searchResultsController problems : iOS 8
                Hi, here is my problem:
In my AppDeleagate's  didFinishLaunchingWithOptions: method i have a method [self configureUINavigationControllerStlyle]; which configures the status bar and all the ...
            
        
       
    
            7
            votes
        
        
            5
            answers
        
        
            2k
            views
        
    iOS 7 StatusBar issue when I am using UIImagePickerController Allow editing
                I study related iOS 7 status-Bar Maintain, but am I facing an issue while I am using UIImagePickerController. Allow editing that Editing Window shows 20 pixels space at the top bar.
I used the code ...