views:

35

answers:

2

Hi at all, there is a way for put button transparent not with alpha?? I'm explain, I have a background image on my view, there is also some button with image background, if the image as a transparent part I see on button a white color inside the view background image. There is a possibility to exploit the image transparency?

kikko088

A: 

You want to set the button opaque property to NO.

In InterfaceBuilder, you have a checkbox to do that.

jv42
+1  A: 

Set the backgroundColor of the button to [UIColor clearColor] and optionally its opaque to NO (Should automatically be applied by setting the background color to transparent).

Pascal
Not work in this way but I find a solution in internet, I have to set UIButton *button = [UIButton buttonWithType:UIButtonTypeCustom]; But however thank you!
Francesco