Everytime UIView’s drawRect is called, the content drawn by previous drawRect (using Core Graphics) is cleared out. How can I make it so that the paths rendered from previous drawRect calls stay until I explicitly clear it?
Everytime UIView’s drawRect is called, the content drawn by previous drawRect (using Core Graphics)
Share
You basically need to clip the ‘dirty’ part of your rect where changes have been made, and only this part will be re-drawn.