I just can't imagine why the whole Bézier curve has this shape in my mind without seeing the control poin开发者_如何学Pythonts. Is there any facilities for this?
There's a function called CGPathApply
you can use. It takes a pointer to a function you implement, which must take a structure describing the anchor point as its second argument.
Each of those structures includes one or more points. For curve elements, the last one is the next anchor point (where the curve will end up), and the one or two points before that are the control points.
精彩评论