1

I'm drawing a curve between two points with a centerPoint, and I would like to have the bow ends thinner than the center part. I mean, I want different setLineWidth for the ends. Any idea?

UIBezierPath *path = [UIBezierPath bezierPath];
CGPoint p=CGPointMake(posXAbsolutaComienza, posYAbsolutaComienza);
[path moveToPoint:p];
CGPoint p2=CGPointMake(posXAbsolutaAcaba, posYAbsolutaAcaba);
CGPoint centerPoint=CGPointMake(posXAbsolutaIntermedio, posYAbsolutaIntermedio);
[path setLineWidth:grosorLinea]; 
[path addQuadCurveToPoint:p2 controlPoint:centerPoint];
[[UIColor blackColor] setStroke];
[path stroke];
durron597
  • 31,968
  • 17
  • 99
  • 158
user3711263
  • 69
  • 1
  • 9

0 Answers0