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

Wrong UISearchBar touches area

Summary I've got wrong UISearchBar touch area after pushing view controller with status bar from view controller without it. Explanation I have two view controllers A and B inside UINavigationController. A hides status bar with following code: -…
Leo
  • 3,003
  • 5
  • 38
  • 61
3
votes
1 answer

Adjusting views when Status Bar hides on rotation

I've browsed around looking for an answer for this, but I've only found people with similar problems and not this exact problem, so hopefully someone here can help me! I have an iPad App. On iPad, when you hold the iPad in either portrait or…
Rob
  • 1,025
  • 2
  • 10
  • 27
3
votes
1 answer

setNeedsStatusBarAppearanceUpdate crash my app

I need to change the color of status bar in my app.I'm using the code below - (void)viewDidLoad { [super viewDidLoad]; .... [self setNeedsStatusBarAppearanceUpdate]; } -(UIStatusBarStyle)preferredStatusBarStyle{ return…
3
votes
2 answers

transparent UIStatusBar with UISearchController

i'm using the following code to display a UISearchBar searchController = UISearchController(searchResultsController: resultsTableViewController) searchController?.searchResultsUpdater = self searchController?.searchBar.sizeToFit() …
sger
  • 719
  • 2
  • 12
  • 26
3
votes
2 answers

full screen background image while using uinavigationcontroller

I have an UINavigationController with UINavigationBar hidden = YES. I want full screen bg for view that embedded in UINavigationController. But I get only that: http://cs616618.vk.me/v616618797/1bf0d/FEdIn0Nn4x8.jpg Is it possible to make it full…
3
votes
1 answer

preferredStatusBarStyle for native controllers

Since apple introduced UIViewControllerBasedStatusBarAppearance and preferredStatusBarStyle in iOS 7 I'm trying to understand whats best practice to change status bar color for built in view controller, like: UIImagePickerController …
Mario
  • 2,431
  • 6
  • 27
  • 34
3
votes
3 answers

how to set text color of status bar (other than white and black)

Note: I don't want to change the status bar color or text color to white or black. I know how to do that. I want to change status bar text color to green. Black [[UIApplication sharedApplication]…
Fahim Parkar
  • 30,974
  • 45
  • 160
  • 276
3
votes
0 answers

NavigationBar and StatusBar merge after dismissing a modal

I've got a problem with a statusbar on a iOS 7 only app. If I present an other viewController (embed in a UINavigationController, or not, same result) and I dismiss this modal view controller, my back viewcontroller (the one presenting the…
3
votes
3 answers

How to change PreferredStatusBarStyle programmatically

I'd like to change the color of status bar from white to black by press button, programmatically only in a single-ViewController This is the code: - (UIStatusBarStyle)preferredStatusBarStyle { NSLog(@"PreferredStatusBarStyle"); …
ikanimo
  • 481
  • 1
  • 4
  • 18
3
votes
1 answer

White UIStatusbar slightly blinking when reopening app?

I've got a little bit of an issue with the status bar for iOS7, iPhone 4 and up. Since my app's background is dark, I need the status bar to be white, which looks fine. However, when minimizing the app, waiting a few seconds and going back into the…
Yasper
  • 501
  • 5
  • 23
3
votes
1 answer

Storyboard-set iOS 7 Status Bar not shown in right style

I have two Scenes in a Storyboard; a dark one and a light one. Set to Default in the Simulated metrics' Status Bar section, the light scene's bar is dark and works correctly. The dark scene's is set the same way to Light Content style but it doesn't…
Peter V
  • 2,478
  • 6
  • 36
  • 54
3
votes
1 answer

iOS7 - Status bar with specific color

is it possible to change status bar text and battery icon to specific color, for example red color? I have read some article about this, suggesting me to use setStatusBarStyle. But I don't have option to set to specific color. So, is it possible to…
Yacob
  • 151
  • 2
  • 8
3
votes
3 answers

iOS7 merged statusbar and toolbar

How do I create a toolbar that is merged with the status bar at the top in iOS7, like in the Safari app? This can be easily achieved using a UINavigationBar, however, an UIToolbar is needed.
Hristo
  • 6,382
  • 4
  • 24
  • 38
3
votes
2 answers

Can't change UIStatusBarStyle on MFMailComposeViewController

I currently use the iOS 7 mechanism of defining the (UIStatusBarStyle)preferredStatusBarStyle selector on UINavigationController subclasses to control the appearance of the status bar in modally presented views (returning…
Regan
  • 1,487
  • 2
  • 28
  • 43
3
votes
1 answer

Prevent status bar hide when presenting modal viewcontroller ios6

I'm trying to present simple UIViewController modally by using segue. after view controller is presented status bar is getting hidden, how to prevent status bar getting hidden ? i have one solution, just to put [[UIApplication sharedApplication]…