Reputation: 19879
I there a way to remove all paths from CGMutablePathRef and get a clear one ?
I am drawing with a path and I wish to get it empt for reuse ?
Upvotes: 2
Views: 1306
Reputation: 5520
I don't think so, just release it and create a new one - should be faster anyways.
CGPathRelease(pathref);
pathref = CGPathCreateMutable();
Upvotes: 3