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
11
votes
2 answers

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 bar, optionally animating the transition to the new…
Ashish Kakkad
  • 23,586
  • 12
  • 103
  • 136
11
votes
3 answers

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 becomes transparent and shows the table content…
11
votes
4 answers

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 are scrolled to show or hide at the same time. My…
Jason Lee
  • 3,200
  • 1
  • 34
  • 71
11
votes
3 answers

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 still appears at the top of the content. So, how…
mike
  • 1,441
  • 2
  • 19
  • 31
10
votes
6 answers

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 set after the view loads, the UINavigationBar is…
Old McStopher
  • 6,295
  • 10
  • 60
  • 89
10
votes
2 answers

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 question is how can I display a green In-Call bar…
Sega-Zero
  • 3,034
  • 2
  • 22
  • 46
10
votes
6 answers

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 -(UIStatusBarStyle)preferredStatusBarStyle { return…
Strong84
  • 1,869
  • 2
  • 19
  • 24
10
votes
1 answer

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 controllers to respect the shouldAutorotate response of…
Dean Davids
  • 4,174
  • 2
  • 30
  • 44
10
votes
1 answer

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] addObserver:self …
progrmr
  • 75,956
  • 16
  • 112
  • 147
9
votes
6 answers

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.searchController.searchResultsUpdater =…
user2284295
9
votes
4 answers

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 contentViewController and don't want status bar on…
Pratik
  • 2,399
  • 17
  • 36
8
votes
1 answer

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 has modalPresentationStyle = .Custom and is…
8
votes
1 answer

iPhone6 status bar showing zoomed in app but not on home screen

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 zoomed vs standard. The app was written using the…
Joe Andolina
  • 648
  • 1
  • 11
  • 23
8
votes
1 answer

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, after two taps to document to make toolbar disappear…
8
votes
1 answer

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 Apples example shows the battery being white when…
Sean Herman
  • 313
  • 2
  • 15
1 2
3
29 30