This is a simple, dynamic and customisable curved line based on Bezier curves. For informations about the meaning and the usage of the control points check http://pomax.github.io/bezierinfo/
Sample:
self.curve = [[SXBezierCurve alloc]initWithStartPoint:[SPPoint pointWithX:0 y:0] endPoint:[SPPoint pointWithX:0 y:100] controlPoint1:[SPPoint pointWithX:100 y:20] controlPoint2:[SPPoint pointWithX:80 y:80]]; self.curve.x = 300; self.curve.y = 100; self.curve.color = SPColorNavy; self.curve.thickness = 5; [self addChild:self.curve];
No comments so far. Feel free to edit this part of the page.