Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

frijos

macrumors newbie
Original poster
Jul 26, 2011
3
0
Look at the image please :
mask.png


I have UIView and CGRect. I have to check where CGRect overlays UIView and then set the mask on the area which is "opposed" to intersection. So it's blue part in the image. How to achieve that? I know there's CGContextClipToMask but I have no idea how to use that - could someone help me with example code? Is CGContextClipToMask good direction?

Thanks!
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.