IPhone. Color change of status bar in IB does not work

I know this sounds pretty silly, but changing the color of the status bar in IB doesn't change anything. He always stays gray. I can change the code to black (works), but still I have this gray bar during the first run. Xcode - 4.2 beta, now you can’t download a new one.

Any thoughts?

+3
source share
1 answer

You need to set the status bar style in the Info.plist file. So that it displays correctly at the beginning.

Use "Status Bar Style" as the key or "UIStatusBarStyle" if you are using raw values. Then set it to your desired style.

+6

Source: https://habr.com/ru/post/1782025/


All Articles