This is a read-only archive of the Framer Community on Facebook.

What is Framer? Join the Community
Return to index
Edward Sanchez
Posted Sep 02 - Read on Facebook

I can't for the life of me change the status bar text color to white on the iPhone.

I've tried both:
<meta name="apple-mobile-web-app-status-bar-style" content="black">
and
<meta name="apple-mobile-web-app-status-bar-style" content="white">

I'm loading this from a simple Xcode project with a web view and also fiddled with settings there, but the font always shows black.

9 Comments

Alex Hazel

<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">

Alex Hazel

iOS7 no longer works like iOS6.

Here is a link explaining in detail the issue with the iOS7 status bar: http://stackoverflow.com/questions/19071414/change-the-color-of-the-ios-7-status-bar-in-safari-and-chrome

Alex Hazel

"Any other content value such as white doesn't work and default behavior is exhibited."

Edward Sanchez

Thanks Alex, still no luck. Maybe it doesn't work with WebViews or something? But what's strange is even if I don't put the tag and load my Xcode project with status bar set to Light or Default, I still get black text.

Alex Hazel

Does this help?

"So I realized that the code pushes the UIWebView down 20px. Meaning that the white space by definition cannot be UIWebView. The white space is the main view which I changed the background color by doing the following:"

http://stackoverflow.com/a/19419902/511039

Alex Hazel

If you change the background color of the main view to Black then maybe the text will display as white when using black translucent?

Edward Sanchez

Thanks for your help Alex! I'll give it a try when I have a bit more time to fiddle with Xcode, I'm still learning it so those instructions will need some figuring out.
Thanks again!

Johannes Eckert

wait? you are building an xcode app and want to change the status bar color to white? a meta tag wouldn't do it for you — you have to call the API directly: http://stackoverflow.com/questions/17678881/how-to-change-status-bar-text-color-in-ios-7

Johannes Eckert

… or this answer without writing code: http://stackoverflow.com/a/18732865/3995506

Read the entire post on Facebook