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

Is it possible to cover UIStatusBar with a view while maintaining scrollsToTop functionality?

I want to display a message to the users of my app in the UIStatusBar, but I'd like to maintain the scrollsToTop functionality so a user can tap on the statusbar and scroll a tableView up to the top. I've looked into adding a UIWindow on top of the…
Jonah
  • 4,810
  • 14
  • 63
  • 76
2
votes
1 answer

change color of status bar according to content beneath it

We do have so many question here on turning status bar to white color but I wanna know how can I turn it to white or black according to content beneath the status bar same as iOS 9's music app does, is it possible to make this change dynamically…
user6883365
2
votes
2 answers

iOS 9 extended status bar bug?

I'm having a problem in my app where there is a black bar at the top of app and my whole view gets pushed down 20pts from the top. Here is a very short sample project that reproduces the bug:…
Cbas
  • 6,003
  • 11
  • 56
  • 87
2
votes
1 answer

View shifts down when presenting view controller with status bar on iOS 9

I have a view controller (view1) that prefers a hidden status bar. I have a button that presents another view controller (view2) modally from the bottom of the screen (a 'Show' segue in my storyboard) and view2 prefers a visible status bar. On iOS…
Kevin_TA
  • 4,575
  • 13
  • 48
  • 77
2
votes
2 answers

Hide Status Bar during a Custom UIViewController Transition

Background: I implemented a Custom UIViewController Transition where the first view controller (VC1) has a visible status bar override func prefersStatusBarHidden() -> Bool { return false } while the second presented view controller (VC2)…
ddxue
  • 21
  • 3
2
votes
0 answers

I am getting exception for the Status bar appearance in exception breakpoint

I have made the View controller based status bar ... YES since i am managing my status bar. But some of my code still have the code Setstatusbarhidden:YES/NO old style deprecated API calls. Is there any leads or advice what may be wrong in this…
codelover
  • 1,113
  • 10
  • 28
2
votes
0 answers

Overwrite 'preferredStatusBarStyle' method makes navigationBar hidden strange

All my viewcontroller inherit my BaseViewController, when I overwirte'preferredStatusBarStyle' method in my BaseViewController, navigationbar hidden works strange. here is the gif But if I delete the 'preferredStatusBarStyle' method , it works…
iceBang
  • 174
  • 5
2
votes
0 answers

Set StatusBar Color for Extensions in UIActivityViewController

Following situation given: iOS 8+ App (mainly Swift). StatusBar is set to View controller-based status bar appearance. Within the App multiple UIActivityViewControllers are used to display sharing options. The Problem: Some sharing activities have…
2
votes
4 answers

Modal View Controller with Different StatusBar Style than the ParentViewController

I have a view controller with a Light Status Bar Style, and then a user can press a button which modally presents a Game Center Leaderboard. However, I want the modal view controller to have a .Default style when the parent view controller has a…
Harish
  • 1,374
  • 17
  • 39
2
votes
0 answers

In-call status bar overlaps with presenting view controller

Say I have just 3 controllers FirstViewController, SecondViewController and a RootViewController. And I present FirstViewController from RootViewController, and then SecondViewController from FirstViewController on some Button's tap, so the…
O Fenômeno
  • 445
  • 3
  • 14
2
votes
1 answer

UIViewController content under Status Bar

I want my content to go under status bar. I don't want to show NavigationBar. I've checked extend edges "Under Top Bars" in storyboard settings and I am facing an issue that it just stops working from no reason. Can I force ViewController/…
zevonja
  • 193
  • 1
  • 14
2
votes
1 answer

Status bar color throughout the app

I am adding a transparent look to my statusbar using the following piece of code in my AppDelegate.swift: statusBar = UIView(frame: CGRectMake(0, 0, self.window!.frame.width, 20)) statusBar!.backgroundColor = someTransparentColor // customized…
rgamber
  • 5,749
  • 10
  • 55
  • 99
2
votes
0 answers

Retain UINavigationBar height as 64points when UIStatusBar hides

I'm using a UINavigationController, which has a UINavigationBar. When I call and hide the UIStatusBar, the navigationBar reduces in size to 44pts. I don't want this to happen, I want it to retain the size of 64pts. Is this even Possible? Could I do…
jasonIM
  • 193
  • 2
  • 13
2
votes
0 answers

UIViewController's frame on start with UIStatusBar frame at 40 pixels

I don't know if the question title is clear enough but there's a simpler explanation, when I first launch my app and the status bar frame is "modified" at 40 pixels by a call, map updates and any other case like that, and it seems like that state…
Herz Rod
  • 831
  • 8
  • 21
2
votes
5 answers

How do I hide the status bar of a pushed view controller in objective c?

I have a signup form that pops up when a button is tapped. My aim is to hide the status bar when this modal is popped up. Here is my code: - (IBAction)tappedJoinButton:(id)sender { if (![PFUser currentUser]) { PFSignUpViewController…
LondonGuy
  • 10,778
  • 11
  • 79
  • 151