Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

UIToolbar is not translucent in iOS 7

I'm making an UIToolbar above keyboard and it doesn't have blur effect in iOS 7, it's just grey. I've tried to change alpha value, backgroundColor, explicit YES to translucent, but it all didn't work. Appreciate any help!

like image 445
Sergey Kuritsyn Avatar asked Jan 26 '14 23:01

Sergey Kuritsyn


1 Answers

You could try this:

[toolbar setBarStyle:UIBarStyleBlackTranslucent];
[toolbar setBarTintColor:[UIColor yellowColor]];
[self.toolbar setTranslucent:YES];

it should work then you can tweak bar tint color and adding the alpha component if you like.

like image 125
wildmonkey Avatar answered Nov 15 '22 04:11

wildmonkey