objective c - iPhone custom UIView with partial transparency -
objective c - iPhone custom UIView with partial transparency -
i'm trying have single big uiview (for illustration web view) have different transparent regions. think of cardboard cutout person can insert head, this:
the user should able tap on screen user wants transparency appear, able dynamically edit content retrieved internet.
i want know if possible have single uiview (for illustration imageview or web view) have regions of different transparency. illustration person's face may made transparent , face substituted in it's place.
currently know how create view using multiple uiviews different transparencies. know how set alpha single uiview.
any input appreciated.
yes, possible. can, instance, utilize image alpha channel in view. if want cardboard cutouts, create images cutouts anyway. have head-holes transparent (and utilize transparent backgroundcolor uiimageview).
there nil wrong using composite view accomplish desired outcome, though. if plan reuse view often, create uiview subclass.
another way using calayer
's mask property.
iphone objective-c uiview ios5 alpha
Comments
Post a Comment