Answer the question
In order to leave comments, you need to log in
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
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.
Here is a good solution gist.github.com/aprato/6631390
Add another layer to the Navigation Bar and the color becomes brighter.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question