Reputation: 4271
I am building a drawing application (something like MiniDraw). UIBezierPath class is cool for that and I can accomplis dynamic path building:
[path addCurve:23.0 controlPoint:5.5]; //etc...
When I finish I want the ability to change the points in that path without creating a new UIBezierPath, that way I could accomplish dynamic editing of path.
For example, FabricJS javascript library can do this in a way that each path object contains array structure like this:
[['M', 20, 20], ['L', 40, 40], ['Q', 70, 50, 30], ['Z']] //etc...
That way I can edit each point but I don't see anything similar in UIBezierPath class.
Upvotes: 3
Views: 2127
Reputation: 385700
UIBezierPath
does not allow your to change points already added to the path. You will have to create a new path.
Upvotes: 2