Setting background transparent on UI objects

You can just use [UIColor clearColor] whenever you want to set something with a fill transparent inObjective C.

You can also do this in Interface builder by selecting the object and opening the colors window. Then adjust the alpha value with the slider at the bottom.
This works for all sorts of UI elements – buttons, textfields etc.

[label setBackgroundColor:[UIColor clearColor]];

Leave a Reply

Your email address will not be published. Required fields are marked *