How to paints a transparent circle like using CGContextClearRect to draw a transparent rectangle
- by user177946
Hello All,
Do anyone know how I can draw a transparent circle on a CALayer just like using CGContextClearRect to draw a transparent rectangle? My requirements is that I need to draw a mask on a picture, in some cases, I need to erase it, but CGContextClearRect only allow to draw a rectangle, I wonder if there is another way to do the same thing and draw a tranparent circle.
Regards,
Anto