I create a UIView and put it on top of an imageView,and set the uiview’s background color as clearcolor,all the drawing take place on that UIView,how can just erase the line I drew on that uiview ?
thanks.
I create a UIView and put it on top of an imageView,and set the
Share
Did you try
CGContextSetBlendMode(context, kCGBlendModeClear)and then draw the area you want to erase. Clearing the context withCGContextClearRectcan be used too if you want to clear the whole screen (or a rectangular part of it).