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

Status bar in IOS weird behaviour

I have a splash screen that fades into the main screen with animation. I have set the UIstatusbar style to Light from General settings of the Project and also set "View controller-based status bar appearance" in info.plist to NO. All the views and…
ankit_rck
  • 1,796
  • 2
  • 14
  • 24
1
vote
1 answer

How to update the status bar style when transitioning to a new view controller?

I have a container view controller which transitions from one child view controller to another child using this code: - (void)switchToNewViewController:(UIViewController *)newController { [self …
Pwner
  • 3,714
  • 6
  • 41
  • 67
1
vote
1 answer

Get the current color of the status bar

Is it possible to get the current color of the status bar in iOS? I know we can change the color but is it possible to programmatically get the current state of the status bar? e.g whether its UIStatusBarStyleLightContent or UIStatusBarStyleDefault
DevC
  • 6,982
  • 9
  • 45
  • 80
1
vote
0 answers

Can't change statusbar to white in UINavigationController

I want a single controller to have white text in the status bar. I've set "View controller-based status bar appearance" to YES in my plist. The controller I want to have white status text is embedded in a UINavigationController so overriding…
Cocoa Nub
  • 489
  • 7
  • 20
1
vote
2 answers

App crashing with error +[UIStatusBar frameForStyle:orientation:]: unrecognized selector

I'm working on an app which was made in some older version of Xcode, it is currently having min supported version iOS 7.0 +[UIStatusBar frameForStyle:orientation:]: unrecognized selector sent to instance I have set the break point, but unable to…
zaheer
  • 893
  • 13
  • 27
1
vote
2 answers

status bar iOS 7

I want to hide status bar in splash screen and show to viewController with white color. I have done followings for this: Added "Status bar is initially hidden" to YES in info.plist. In –(BOOL)application:didFinishLaunchingWithOptions: method I have…
Juno
  • 347
  • 2
  • 11
1
vote
2 answers

Touch ID dialog showing a second status bar

When I let the user login into my app with Touch ID, I get the dialog (which by the way is very ugly and cannot be customized) and I also get a second status bar, which looks like this: Is there any way to hide the status bar? If not, set the…
Daniel
  • 20,420
  • 10
  • 92
  • 149
1
vote
2 answers

Position UIView above status bar

I am trying to get a UIView to sit on top of the status bar, but currently have had no success. I have tried the following: view.window?.windowLevel = UIWindowLevelStatusBar + 1 // view being a UIView() object I have also tried: let win: UIWindow =…
PersuitOfPerfection
  • 1,009
  • 1
  • 15
  • 28
1
vote
1 answer

UIStatusBarStyleBlackOpaque and UIStatusBarStyleBlackTranslucent still possible despite being deprecated as of iOS 7.0?

Is it still possible to use UIStatusBarStyleBlackOpaque or UIStatusBarStyleBlackTranslucent despite being deprecated as of iOS 7.0? Does "deprecated" mean "look down upon but still allow" or "not allowed at all"? I've tried doing a [[UIApplication…
CarlGammaSagan
  • 423
  • 3
  • 16
1
vote
0 answers

Hiding, then showing status bar loses background - iOS 7

I am presenting from a view controller with a visible status bar to a view controller with a hidden status bar, then dismissing it. Upon dismissing, the status bar doesn't have my navigation bar's background color anymore - it's completely…
RileyE
  • 10,874
  • 13
  • 63
  • 106
1
vote
2 answers

White transparent toolbar, how do I make status bar match

Using xcode6, and storyboarding I have a toolbar that is at the top of my view. under the toolbar is a mapview. The map view extends under the status bar which is what I want. Basically I want the toolbar and status bar to be a little transparent…
lostintranslation
  • 23,756
  • 50
  • 159
  • 262
1
vote
3 answers

Set status bar colour for different view controllers

I have 6 view controllers. I'd like to set the status bar of my first view controller to black and then the other 5 to white. All view controllers are in a push stack. I've tried to implement [self setNeedsStatusBarAppearanceUpdate] -…
user3626407
  • 287
  • 1
  • 6
  • 15
1
vote
1 answer

How to manually trigger "Scroll to top" for active scrollview component on iOS?

I know how to manually scroll a UITableViewor UIScrollView to top. I am trying to replicate the behaviour of tapping the UIStatusBar which automatically finds the active view that can be scrolled to top and scrolls it to top. So, I want to do the…
frankish
  • 6,738
  • 9
  • 49
  • 100
1
vote
1 answer

iOS 7 Status Bar weird behavior

I'm using a UISplitViewController for an iPad app and I get a weird behavior from the StatusBar. Here's how I initialize my RootViewController: if(kIosVersionFloat >= 7.0) [application setStatusBarStyle:UIStatusBarStyleLightContent]; …
PonyLand
  • 115
  • 2
  • 10
1
vote
0 answers

View gets Distorted when GADInterstitial calls interstitialDidReceiveAd:

I am using google AdMob in my App. No problem in implementing the "GADInterstitial" which is used fo viewing google ads in full screen. But the Problem is few times when the ads I show Distorts the view. I used the following Code given at google…
Jasmeet
  • 1,522
  • 2
  • 22
  • 41