UIToolbar is not transparent in iOS 7

I am doing a UIToolbar over the keyboard and it does not have the blur effect in iOS 7, it is just gray. I tried to change the alpha value, backgroundColor, explicit YES for translucent, but all this did not work. Appreciate any help!

+6
source share
2 answers

The answer to wildmonkey is correct, but no one mentions that this is limited to the UINavigationBar , so I thought I'd add it to the collection of answers here. If you need a UIToolbar appearance that allows you to have a UIBarButtonItem in it (as long as the UINavigationBar does not allow this), you can create a transparent UIToolbar on top of an empty UINavigationBar (an empty title bar or remove the navigation item altogether) to get the look you are looking for. Make sure the UIToolbar arranged on top. In the list of interface constructors, it should look like this:

enter image description here

0
source

You can try the following:

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

it should work, then you can adjust the color of the hue of the stroke and add the alpha component if you want.

+4
source

All Articles