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
4
votes
0 answers

Add View between Status Bar and Navigation Bar

What is the proper way to add a view between the Status Bar and the Navigation Bar? I'm trying to create a banner similar to the in-call status bar banner that's present when you're making a call. Right now, I'm simply resizing the window and adding…
4
votes
0 answers

Incorrect Animation used despite preferredStatusBarUpdateAnimation being called

Popping to a controller and calling the reenteringViewController method show below after view will appear ignores the preferredStatusBarUpdateAnimation set in the view controller and instead uses a Slide Animation (which was used previously in the…
JapanDev
  • 341
  • 2
  • 12
4
votes
1 answer

Keep UINavigationBar height with prefersStatusBarHidden

At certain times in my app I am hiding the UIStatusBar on iOS 7. -(UIStatusBarAnimation)preferredStatusBarUpdateAnimation { return UIStatusBarAnimationFade; } -(BOOL)prefersStatusBarHidden { if (self.state == StateModal) { return…
runmad
  • 14,846
  • 9
  • 99
  • 140
4
votes
3 answers

iOS JASidePanel status bar customization

I am using JASidePanels in my app and everything is so far so good. My design team have come up with a UI design like this, when the side panel is shown or revealed, But I am able to reproduce like! this. What all I have tried so far: I tried…
Satheesh
  • 10,998
  • 6
  • 50
  • 93
4
votes
2 answers

iOS 7 How to animate StatusBarStyle from DefaultContent to LightContent

I am trying to transition the status bar style from UIStatusBarStyleDefaultContent to UIStatusBarStyleLightContent using a UIView animation, however, the style just switches with no fade animation. I figured that setting the style using the…
crizzwald
  • 1,037
  • 2
  • 14
  • 30
4
votes
3 answers

iOS7 Custom Transitions with UINavigationController

I am using the iOS7 custom transitions to modally present a new view controller. The new view controller is a navigation controller. The controller animates up from the bottom, while the background view blurs. My issue is that the navigation bar on…
Alan
  • 4,325
  • 3
  • 21
  • 25
4
votes
2 answers

Navigation Bar hiding status bar

Like the title says, I have a navigation bar that is hiding my status bar. I have been running my application on a simulator and recently started running it on a device, iPhone 4s iOS7, and noticed that the status bar is hidden or being hidden, only…
Chris
  • 1,004
  • 2
  • 11
  • 25
4
votes
1 answer

UIStatusBarAnimationFade duration

I have an app where I have a button that fades the screen to black. I want to have the status bar fade to black also, so I'm using the following code: [[UIApplication sharedApplication] setStatusBarHidden:YES…
Jeffery Thomas
  • 42,202
  • 8
  • 92
  • 117
4
votes
3 answers

Wrong value for statusBarOrientation on viewWillAppear

I need to change the image background of a View depending on the orientation. For this, I am using the statusBarOrientation approach in viewWillAppear: - (void)viewWillAppear:(BOOL)animated { [super viewWillAppear:animated]; …
MRD
  • 7,146
  • 1
  • 21
  • 21
3
votes
1 answer

Will Apple reject the app if UIStatusBarForegroundView is used as string

In my app I have need to trigger show some custom view when status bar is tapped. I figured out the way to get the event by subclassing UIApplication. If I use the code below will Apple block my app for private API usage? - (void)sendEvent:(UIEvent…
imthi
  • 4,798
  • 1
  • 22
  • 24
3
votes
4 answers

Hiding UIStatusBar / Moving UINavigationBar

I have a navigation-based application where it is possible for the user to hide the status bar. This is remembered in a defaults setting. It is mostly working, with the one exception that if the app is loaded (from scratch, not returned to after…
jrturton
  • 118,105
  • 32
  • 252
  • 268
3
votes
1 answer

iPhone: problems with translucent black uistatusbar with view layout

I am having some issues with my status bar. This is an iPhone app, not an iPad app. I would like to have a Black Translucent status bar everywhere in the app. I have set the status bar style in the app plist. It is set to black translucent. My…
chadbag
  • 1,837
  • 2
  • 20
  • 34
3
votes
0 answers

Hiding/showing status bar makes navigation bar jump down

I have a UIViewController (CameraViewController) and a UINavigationController (ListsNavController). They are embedded inside another view controller, MasterViewController, like this: class MasterViewController { /// I also have…
aheze
  • 24,434
  • 8
  • 68
  • 125
3
votes
3 answers

iOS 13 Status bar style invalid (childForStatusBarStyle never called)

I've been searching a lot, but didn't find the same problem as my on StackOverflow or anywhere else. Setup Info.plist ViewControllerBasedStatusBar set to YES StatusBarStyle set to .lightContent UserInterfaceStyle set to .light (app doesn't…
えるまる
  • 2,409
  • 3
  • 24
  • 44
3
votes
0 answers

Make the status bar opaque and coloured in iOS 13

I'm trying to make the UINavigationController's UINavigationItem retract upon scrolling a WebView's UIScrollView (just like it does in Safari). Desired behaviour This code works on iOS 12: let statusBar: UIView = UIApplication.shared.value(forKey:…
Jamie Birch
  • 5,839
  • 1
  • 46
  • 60