F
F
fannt2013-09-26 10:56:55
iOS
fannt, 2013-09-26 10:56:55

IOS 7: transparency of navigationBar and statusBar?

in iOS 7 it became possible to set the style of the status bar, although there are only 3 options
- Gray (default)
- Transparent black (alpha 0.5)
- Opaque black
+ navigationBar has a tintColor property that can set the color of the statusBar + NavBar bundle
And now the question is: how set the degree of transparency statusBar + NavBar? for example, in the same new application facebook alpha obviously not 0.5
tried to set the alpha with a color, tried to put a picture with the desired transparency in the navbar, but it feels like when rendering everything comes down to alpha 0.5.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
B
BenderRodriguez, 2013-09-26
@fannt

stackoverflow.com/questions/18897485/achieving-bright-vivid-colors-for-an-ios-7-translucent-uinavigationbar
Here they disassemble the design of the facebook panel and, as a solution, they suggest making a substrate from an additional CLayer.
This is what I did in my project. True, I didn’t have problems with alpha, but with the need for a brighter color, like facebook.
If the standard blur is not needed, you can put a 1x1 UIImage with the desired UIColor on the background of the panel. Alpha UIColor will match the transparency of the panel.

C
Chater, 2013-09-26
@Chater

Here is a good solution gist.github.com/aprato/6631390
Add another layer to the Navigation Bar and the color becomes brighter.

F
fannt, 2013-09-26
@fannt

thanks, I saw this option on SO, but something didn’t work out with it (I’m sinning on myself here)
, but with the last option it worked, though I had to sacrifice blur for the time being, but that’s okay)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question