ohho
ohho

Reputation: 51921

How to remove subpaths from a CGPath?

A few subpaths are added to a mutable graphics path:

 CGPathAddPath(path, NULL, subpath1);
 // ...
 CGPathAddPath(path, NULL, subpath2);
 // ...
 CGPathAddPath(path, NULL, subpath3);

How can I remove some/all subpaths from path?

Upvotes: 2

Views: 2284

Answers (1)

Rad'Val
Rad'Val

Reputation: 9231

You can't, you are responsable to keep the data required to redraw the path (or part of it) if needed (you basically have to create a new path containing only the subpaths you want to keep).

Upvotes: 1

Related Questions