By default, the UINavigationBar
(and this appears to be valid to UITabBar
as well) has a blur effect and is tinted white (with some translucency).
What I would like to have is a fully transparent (not translucent!) bar, and keep the blurriness of what's behind it. Here's a mockup:
If I try to set a custom bar tint color like this:[[UINavigationBar appearance] setBarTintColor:someColorWithAlphaLessThanOne];
The bar will, however, be tinted with a color exactly the same RGB values, but alpha forced to 1. In other words, the bar will be opaque.
If I set the navigation bar's background image to a new UIImage
, then it will be fully transparent, but will not have the blur effect.
How can I remove the white tint and keep the blur?
UIVisualEffect
. On iOS 7 I'd probably need some thing like FXBlurView, but I am not sure I can achieve the full transparency effect with either of them – Guilherme