-1

I am trying to hide the status bar, or at least change the color of the icons to white because they don't fit with my design. I have tried to put "none" and "lighten" from storyboard, and by using this code:

-(void)viewDidAppear:(BOOL)animated{

[[UIApplication sharedApplication] setStatusBarHidden:YES];

}

...and setting hide status bar at app launch, but the status bar is still, stuck there. There was no way to change the color of the icons either. Why?

Alessandro
  • 4,000
  • 12
  • 63
  • 131

2 Answers2

1

Easiest way to hide statusbar throughout app is just go into your Info.plist; right click to add a row and select Status Bar Initially hidden.

This will ensure every time you app launches the status bar will be hidden.

iAhmed
  • 6,556
  • 2
  • 25
  • 31
0

Go into Targets => Summary and there you should check "Hide during application launch" and it will solve your problem

enter image description here

Magyar Miklós
  • 4,182
  • 2
  • 24
  • 42