How to delete a line in the main chart

I draw a line using CGContextAddLineToPoint in my application. Now I want to remove the row from the given points. How can I do this, I use strokes for the drawing line

+1
source share
1 answer

You can delete,

Given two points, draw a line with the same attributes (lineWidth, etc.) by setting CGContextSetBlendMode(context, kCGBlendModeClear) .

+5
source

Source: https://habr.com/ru/post/1501456/


All Articles