UIView and subviews - opacity

mootymoots picture mootymoots · Feb 25, 2010 · Viewed 20.8k times · Source

Is it possible to make a UIView (and any other subviews within it) set to an opacity of say 0.5 or whatever? Not sure if this is even possible, but want to ask.

Answer

Vladimir picture Vladimir · Feb 25, 2010
view.alpha = 0.5; // Doesn't it work?