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?
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.
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.OkRead more