Remove points from a UIBezierPath

cocoa-touch, drawing, ios, uibezierpath

Solution

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`.

Problem

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?

Original source