How to clear and then redraw a quartz pattern
I am making a complex drawing using quartz based on the transmitted information. The only part I haven't been able to figure out is how to clear the lines, rectangles, etc. that I've already drawn? Basically, I want to delete the entire drawing and just extract it from the new data.
+2
source to share
2 answers
If you set the property to a UIView
clearContextBeforeDrawing
value YES
, then the system must take care of filling its scope with its own backgroundColor
before calling the method drawRect:
.
+8
source to share