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

Popular posts from this blog

How do I check if an insert was successful with MySQLdb in Python? -

delphi - blogger via idHTTP : error 400 bad request -

postgresql - ERROR: operator is not unique: unknown + unknown -