In iOS 7, if I set the toolbar background color, it uses a washed out version of the color, not the actual color. At first I thought maybe the toolbar was semi-transparent (not fully opaque) but that doesn't appear to be the problem.
Even using black only give me a light grey color.
[topToolbar setBackgroundColor:[UIColor blackColor]];
I also tried:
[topToolbar setTranslucent:NO];
But that just caused my toolbar color to be ignored completely.
Anybody know how to make it just use the color specified, without any weirdness?
Thanks.
I wasn't aware of the setBarTintColor method previously, but it is what is needed to accomplish this.
[topToolbar setBarTintColor:[UIColor blackColor]];
[topToolbar setTranslucent:NO];
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With