addQuadCurveToPoint:controlPoint: bezierPathWithOvalInRect.
: -
- (void)addQuadCurveToPoint:(CGPoint)endPoint controlPoint:(CGPoint)controlPoint
CGPoint - () .
You will also need to set the starting point with moveToPoint:before the call addQuadCurveToPoint, which will act as the current point (since you can see that their starting point is not a parameter in the method).
In your case you will have
1> x, y as a starting point
2> x + width and y + height as the endpoint
you don't need angles here, or you can implement your logic for using angles. Upload the image so that everything is clear.

source
share