0

I am having difficulties with status bar. I currently use it with Default setting in storyboard in my UIViewController.

I am testing it with real device. Before I unplug the charging cable it shows a blue status bar which is normal. But after I unplug it, it displays a black status bar. Below you can see the problem with images.

before unplugging charging cable:

enter image description here

after unplugging charging cable:

enter image description here

birdcage
  • 2,638
  • 4
  • 35
  • 58
  • Storyboard view controller status bar means nothing. You need to use [[NSApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent]. – JackyJohnson Mar 21 '15 at 15:38
  • No difference. still same. – birdcage Mar 21 '15 at 15:54
  • just realized the blue is because you are connected via hotspot. anyway, in your app delegate didfinishloadingwithoptions method add `[[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleDefault];` – JackyJohnson Mar 21 '15 at 15:58
  • I ve done this but its not working. Still black thing happens – birdcage Mar 21 '15 at 16:08
  • The blue bar is when you connect to hotspot so it's not clear what you're doing right or wrong. If you tried certain things you need to explain what you did so people know you're not stupid or they won't waste their time like me trying to help you – JackyJohnson Mar 21 '15 at 16:14
  • Your picture doesn't illustrate the fact you unplugged battery charger but that you're on hotspot and then you're not – JackyJohnson Mar 21 '15 at 16:16
  • If you have a view controller and the root view is colorless and it has a sub view clipped at the top this is what you'll have – JackyJohnson Mar 21 '15 at 16:17

0 Answers0