objective c - Clear background for status bar in iOS



How can I set the colour of the status bar to be clear. No matter what I do, it is white with some alpha.

I do not want it to disappear and I want the text to be black.

In the picture it might look like nag bar and status bar are grey but actually both are white with some blur affect or nag bar has blur affect and status bar is clear.

Pinterest clear status bar

Here is what I get despite the clear status bar background colour enter image description here

1 Answer: 

The status bar has no background since iOS 7. In other words, it's clear by default.

If you see it white, it means the underlying view is white, and you need to change that.