Make part of UIImageView transparent
I have an two UIImageView that both have image & they are intersecting. Can 开发者_开发百科I make the intersection part transparent so that tha main background appear?
To make the UIImageViews partially transparent:
[imageView1 setAlpha:0.5];
[imageView1 setOpaque:NO];
[imageView2 setAlpha:0.5];
[imageView2 setOpaque:NO];
(See UIView Class Reference)
Or if the images themselves are static, you could open them in an image editor (Gimp, Photoshop), and change the intersecting region to have an alpha value of 0.
Create your images itself as transparent where they are intersecting......
精彩评论