-2

Initial viewController looks like below. Main view background color is set to clear, no container is above the wifi / time symbols. Why am I not able to see those infos, but only a black background?

enter image description here

enter image description here

tried status bar setting to change, but without any luck:

enter image description here

János
  • 32,867
  • 38
  • 193
  • 353
  • why -1, I think it is a fairly reasonable question? – János Jul 16 '15 at 09:07
  • a _dark_ text on a _dark_ background is usually not visible. based on that simple fact, I can tell you, your question is quite silly, I'm not wondering about the downvotes; you need to change your statusbar to light colour and your problem would be solved. much quicker than making a post about it. – holex Jul 16 '15 at 09:11
  • I set background to `clear`, `clear` is not `dark` – János Jul 16 '15 at 09:12
  • oh, do you think that makes a huge difference...? as I just told you, you need to set your statusbar to light colour, and your problem is solved. it can be done in... let me think... about 3 secs, I guess I have not overestimated the time. – holex Jul 16 '15 at 09:14
  • That setting only change the appearance in Storyboard ! – PowHu Jul 16 '15 at 09:16
  • I changed background color to `white`, that helped, but `Status Bar` color has no effect – János Jul 16 '15 at 09:16
  • The default background is `black` so when you set a `view`'s background to `clear` it's going to show you the app's background (which is `black`). – Islam Jul 16 '15 at 09:16
  • @János, you need to override the `–preferredStatusBarStyle` method in your view controller... changing this value in IB is effectless. – holex Jul 16 '15 at 09:18

2 Answers2

0

Because default status bar icon tint color is black.

Set status bar style to UIStatusBarStyleLightContent.

More detail

Just add this 2 key to your info.plist

enter image description here

Community
  • 1
  • 1
PowHu
  • 2,159
  • 16
  • 17
0

Try to set into the AppDelegate in "application didFinishLaunchingWithOptions:"

[application setStatusBarStyle:UIStatusBarStyleLightContent];

If still you don't see it set it not hidden like this:

[application setStatusBarHidden:NO];
nicky_1525
  • 929
  • 1
  • 10
  • 24