4
votes

I am using the UIBezierPath class to creating a drawing app. I am working on the eraser tool; however, there doesn't appear to be any method to remove points from the bezier path (only removeAllPoints). How should I go about erasing?

2

2 Answers

4
votes

Store points to NSMutableArray, and if user wants to remove point, recreate whole path from array. There is no method to remove point from UIBezierPath or from CGPath.

2
votes

There is no method to remove points. I decided to draw a white bezier path where the user wants to erase, instead of removing points from the original bezier path.