shannoga
shannoga

Reputation: 19879

Empty CGMutablePathRef paths?

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

Answers (1)

jimpic
jimpic

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

Related Questions