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
1
vote
1 answer

iOS 13 new presentation style turns status bar to light content

I don't have any specific settings regarding the status bar style in my app. However, ever since I started building my app using iOS 13 SDK, the new "card style" presentation modal changes status bar to light content even when the background is not…
kubilay
  • 5,047
  • 7
  • 48
  • 66
1
vote
2 answers

How do I change the UIStatusBar color to .lightContent in the MoreTabBarController

I have a UITabBarController with more than 5 UIViewControllers. I have set the value in my info.plist I have set the value for ViewController based status bar appearance to YES. All of the UIViewControllers have the…
GIJoeCodes
  • 1,680
  • 1
  • 25
  • 28
1
vote
0 answers

Splash screen default bar style for iOS 13 and light content for pre 13

I want to achieve the following: Light content status bar on splash screen when iOS version is < 13 Default status bar on splash screen when iOS version is 13 (light content when dark mode and dark content when light mode) These are the options I…
1
vote
1 answer

Cannot hide status bar in IOS 13

In IOS 11 and 12 I have used [[[UIApplication sharedApplication] valueForKey:@"statusBarWindow"] valueForKey:@"statusBar"] to hide the status bar by changing the height. In IOS 13 using statusBarManager can get the statusBarFrame and change the…
1
vote
1 answer

How to programmatically hide and show status bar in iOS 13?

I have made following common method for hiding and showing again status bar. It works fine before iOS 13, but I am getting following crash while I run it for device having iOS 13 or greater. +(void)showStatusBar:(BOOL)show { UIView *statusBar =…
NSPratik
  • 4,714
  • 7
  • 51
  • 81
1
vote
0 answers

UISearchBar is below status bar after rotation (back to portrait mode)

Reproduce (bug only with iPhone devices <= 8, works ok with iPhone X* devices): Open search bar (by clicking search item on top bar) in portrait mode @IBAction func onSearchBarItemClicked(_ sender: UIBarButtonItem) { present(searchController,…
user924
  • 8,146
  • 7
  • 57
  • 139
1
vote
1 answer

Globally apply a gradient to the navigation bar and handle orientation changes

I need to apply a gradient globally to my status and navigation bars and have it adjust properly to orientation changes. Because I want this to be global, I'm trying to use UIAppearance. Surprisingly, UIAppearance doesn't make this very easy. It…
Jim
  • 1,260
  • 15
  • 37
1
vote
0 answers

SideMenu in Swift ignores UIStatusBarStyle.lightContent

I am using a third party library called SideMenu, which can be found here. It works like a charm, but in my app, I use a white status bar UIStatusBarStyle.lightContent. I set this up in the entire project: in the deployment info and…
PennyWise
  • 595
  • 2
  • 12
  • 37
1
vote
1 answer

Status bar icons disappear and then slowly reappear

I have found that the status bar will disappear when swapping the window's root view controller. I have View controller-based status bar appearance set to NO I am swapping between two different view controllers via [UIApplication…
KWilk
  • 135
  • 8
1
vote
2 answers

iphone View and statusbar

When i add one view(view1) to another view(view2), i find a error: If the status bar is not hidden, after add the view(view1), bellow view1 can appear 20 pixel hight null bar. If the status bar is hidden, this phenomenon disappear. Who can help me…
andon
  • 9
  • 4
1
vote
2 answers

preferredStatusBarHidden in custom cell and object class

Since setStatusBarHidden is deprecated, we will be using preferredStatusBarHidden in UIViewControllers. But, how do I hide and show easily in a object class or custom UITableviewCell class. We used to hide show using UIApplication like this …
nOOb iOS
  • 1,384
  • 2
  • 19
  • 37
1
vote
0 answers

Search Controller .dimsBackgroundDuringPresentation also dims Status Bar?

I have a function to set up my Search Controller which I add to View Did Load. func setUpSearchController() { searchController.delegate = self searchController = UISearchController(searchResultsController: nil) …
David Henry
  • 1,972
  • 20
  • 43
1
vote
1 answer

Is there a way to show UIStatusBar, but still hide the green "Touch to return to call" button?

Because it's seemingly impossible to find an Apple-authorized way to access carrier signal strength, I'm considering leaving UIStatusBarHidden set to false so that the signal bars will still show. The only problem then becomes that the ugly green…
Old McStopher
  • 6,295
  • 10
  • 60
  • 89
1
vote
1 answer

Unable to change status bar style

I have a UIViewController VC, which embedded in UINavigationController NAV. The NavigationController is embedded in UITabBarController TAB. Now, I need every view controller in my app but VC to have .default status bar style. VC has to have…
1
vote
1 answer

Location Services and Call Description status bar of iOS causes to appear black status bar. How to fix it?

When Other Applications uses Location services iOS status bar example given below. It Causes a black status bar above and it causes some problem on network operations such as sending data to the server / Job request are not working when the black…
Fido
  • 218
  • 1
  • 17