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
0
votes
1 answer

Setting status bar hidden is messing with my navigation bar background image size

In my app I want to change only one view controller status bat to hidden. So in the view did load method I added this: - (BOOL)prefersStatusBarHidden { return YES; } Thats what allot of the guides online said to do. Now, this view controller is…
0
votes
0 answers

Status bar goes black after unplugging charging cable

I am having difficulties with status bar. I currently use it with Default setting in storyboard in my UIViewController. I am testing it with real device. Before I unplug the charging cable it shows a blue status bar which is normal. But after I…
birdcage
  • 2,638
  • 4
  • 35
  • 58
0
votes
1 answer

why topbar height is different in portrait and landscape?

#import "ViewController.h" @implementation ViewController - (void)viewDidLoad { [super viewDidLoad]; [self setupTopBar]; } - (BOOL)prefersStatusBarHidden { return YES; } - (void)setupTopBar { UINavigationBar *navigationBar =…
0
votes
2 answers

set iOS status bar text color to black

On one of my viewControllers I'm setting the NavigationBar programatically (to White with Black tint color) All is well, but the text of the statusBar stays white (therefore not visible) The code: [self.navigationController.navigationBar…
Boaz
  • 4,864
  • 12
  • 50
  • 90
0
votes
1 answer

Black UINavigationBar but statusBar stays black

I want to go from a black statusbar to a white statusbar. This is my vc structure: A -> nav controller -> B Somehow I can't seem to set it to white, whatever I try. I tried the simplest solution of setting the navigationController's style to black,…
bdv
  • 1,154
  • 2
  • 19
  • 42
0
votes
0 answers

Keep statusbar bounds when hiding it?

Im hiding the status bar like this: UIApplication.sharedApplication().statusBarHidden = (Bool) Now it hides it, but it also makes its bounds disappear, when it is hiding the mainViewcontroller's view frame is changing, its getting taller. Is it…
Arbitur
  • 38,684
  • 22
  • 91
  • 128
0
votes
2 answers

Status bar overlaps on my view

I have a UIViewController subclass which when I run the app on iOS 7, the status bar shows on top of my view. Is there a way to avoid this? I do not want the status bar to be hidden. Is there a way to show the status bar above my app. I present my…
0
votes
1 answer

Issue with Status bar in UITableViewController (SidebarController)

I am using UITableViewController in sidebar and I am having status bar as white in my application. I am using a SidebarDemo Library with SWRevealViewController in my application. Everything is working fine, only my issue is when I open my Sidebar ,…
user366584
  • 1,016
  • 1
  • 16
  • 34
0
votes
3 answers

Set the background color of UIStatusBar as black in ios7

I don't know how can I set the background color of UIStatusBar as black in iOS7 while background color of navigation bar is not black.and as in iOS7 navigationbar is tranparent so status bar get backgroundcolor from background color of…
Tanvi Jain
  • 917
  • 2
  • 7
  • 19
0
votes
2 answers

How to make UINavigationBar fully transparent or gone like this only title and UIBarButtonItem could be seen

As you can see, the UINavigationBar is fully transparent. Only the title and UIBarButtonItem is visible. And the status bar has the same colour as UITableView's background colour. Right now, I have finished to make the table view and cell has the…
yong ho
  • 3,892
  • 9
  • 40
  • 81
0
votes
1 answer

Is there any way to cover an iOS 7 status bar with a UIView temporarily?

I have a bit of a weird scenario here and have been trying to find some help but the solutions don't really solve my problem rather make it worse. I have a container viewController that has three child controllers views inside a horizontal scroll…
0
votes
2 answers

Toggle iOS 7 Status bar with an UISwitch

I'm trying to use an UISwitch to toggle the status bar (Xcode 5, iOS 7). I currently have this code - (BOOL)prefersStatusBarHidden { return YES; } This hides the status bar completely. but I want to both hide and show the status bar with an…
0
votes
1 answer

topLayoutGuide constraints causing view change when UIStatusBar is hidden

I have a UIViewControllerlaid out in a UIStoryboard that has the ability to hide its UIStatusBar. The views in this VC all include a constraint that keeps it's position relative to the topLayoutGuide. I'm experiencing an issue where all the…
3254523
  • 3,016
  • 7
  • 29
  • 43
0
votes
1 answer

Change Orientation for single view controller..?

i have a application that supports only a portrait mode. but need to change orientation to landscape for a single view controller. i saw more answers here for this. but i cant implement that. i created new single view application now. a view…
0
votes
0 answers

Icon to be shown on the status bar when device receives notifications from server?

Working on an application where I am receiving notifications in my device. I have already set the graphic icon for the notifications in my code by using below code.setSmallIcon(drawableicon); NotificationCompat.Builder notifBuilder = new…