iphone - Mask specific subViews of UIView? -
i working on project. have uiview has several subviews. need know how mask subviews parent view, or mask 1 particular view. there way add refinement checks masktobounds property? direction or suggestion appreciated.
what mean masking?
if want hide particular view, create standalone additional view , change frame
whichever view want hide. bring standalone view front of view want hide, add using insersubview :abovesubview
, variants of it. more on it, see this.
this requires able access them using specific outlets, or through tags know of subviews
array, allow conditional masking.
if want hide instead of "masking" other content, obvious choices are:
- set it's
hidden
propertyyes
. - set it's
alpha
property0.0
(or fade out effect)