Reputation: 111
I draw a line using CGContextAddLineToPoint in my app now i want to remove line from given points how can i do this i am using touches for drawing line
Upvotes: 1
Views: 1383
Reputation: 10251
You can erase,
Given the two points, draw the line with same attributes(lineWidth etc.,) by setting the CGContextSetBlendMode(context, kCGBlendModeClear)
.
Upvotes: 5