I've attempted to set the tint of my UIToolbar in IB, but that always causes the color of the toolbar to become solid. Adjusting the opacity of the color doesn't "stick". Changing the opacity of the toolbar itself is not the effect I'm looking for. What I'm really wanting to do is get the same effect as the Black Translucent style available in IB, but change the color. If I set the tintColor to a UIColor, it becomes non-translucent. Setting translucent to YES doesn't have any effect. What gives?
views:
297answers:
1
A:
Change the alpha value to .6 in the UIColor you set it to. Check the docs for the method, I'm pretty sure you can use one with the alpha parameter during initilization.
JoePasq
2010-03-23 17:04:21
No dice, unless I'm on the wrong path here.toolbar.tintColor = [UIColor colorWithRed:.2 green:.5 blue:.7 alpha:.1];This just creates a solid blue toolbar... no translucency.toolbar.translucent = YES; does not appear to work at all.
E-Madd
2010-03-23 17:12:47
Nevermind. I deleted the toolbar in IB and recreated it. Everything is good now.
E-Madd
2010-03-23 18:59:24