1

Only with iphone 6/6 plus the status bar is blank, I don't see anything while on iphone 5, ipad 3 (both with iOS8) all work perfectly, I add:

[[UIApplication sharedApplication] setStatusBarHidden:YES withAnimation:UIStatusBarAnimationNone];
[[UIApplication sharedApplication] setStatusBarHidden:NO withAnimation:UIStatusBarAnimationNone];

on

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions

I also add: View controller-based status bar appearance NO but nothing, where is the mistake?

francesco.venica
  • 1,703
  • 2
  • 19
  • 54
  • You want to hide status bar ? – Jageen Jan 29 '15 at 11:10
  • no I want to show it!now I see on top of the page a white bar whitout any info (no batt icon, no clock, ecc...) I want to see the status bar with all info. – francesco.venica Jan 29 '15 at 11:11
  • What you ask is default behavior, did you do anything in plist ? or add some code regarding status bar in view controller? – Jageen Jan 29 '15 at 11:31
  • In plist there is only: uistatusbarhiddeno NO, and viewcontrollerbased status NO, on view controller I don't do anything, in fact with iphone and ipad I have no problem. – francesco.venica Jan 29 '15 at 11:39
  • I haven't face this type of problem, but one suggestion is remove that plist field and re-install application in device. also remove coding from didFinishLaunchingWithPtions, / also check by opening other applicaiton like setting.. – Jageen Jan 29 '15 at 11:42

3 Answers3

1

There could be two possibilities.

  • Either this property is present in your plist. (Status bar style : UIStatusBarStyleLightContent) and your viewcontroller's background is also whiteColor.

or

  • Your status bar is set to be hidden initially or by the code [[UIApplication sharedApplication] setStatusBarHidden:YES withAnimation:UIStatusBarAnimationNone];

Kindly check your view background. It could be either black & the statusBar is also Default or it background is white & statusBar is LightContent.

Hope that helps.

Balram Tiwari
  • 5,657
  • 2
  • 23
  • 41
1

Try to add UIStatusBarHidden (Status bar is initially hidden) with value YES in your Info.plist

3CC
  • 502
  • 3
  • 11
0

From the comment above, you mentioned that you want to show the Status bar.

If so, put the following code inside whichever view controller that you want the status bar to appear.

- (BOOL)prefersStatusBarHidden {
    return NO;
}

For the PList:

  • View controller-based status bar appearance: NO (means that you want to hide it)

  • View controller-based status bar appearance: YES (means that you want to show it)

For more information, please see: setStatusBarHidden not working

The above link is about hiding the Status bar. If you want to show it, I think you can just try the exact opposite.

Community
  • 1
  • 1
Ricky
  • 10,485
  • 6
  • 36
  • 49