21 Feb 2011

Setting background transparent on UI objects

Objective C No Comments

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]];

No Responses to “Setting background transparent on UI objects”

Leave a Reply