Record Bezier use
Draw a curve based on a rectangle
+ (Uibezierpath *) Bezierpathwithrect: (cgrect) rect
Draw a curve according to the inscribed circle of a rectangular frame
+ (Uibezierpath *) Bezierpathwithovalinrect: (cgrect) rect
Draw a curve with rounded corners based on a rectangle
+ (Uibezierpath *) Bezierpathwithroundedrect: (cgrect) Rect Cornerradius: (cgfloat) Cornerradius
In a rectangle, you can fillet a corner in the corners
+ (Uibezierpath *) Bezierpathwithroundedrect: (cgrect) rect byroundingcorners: (uirectcorner) Corners cornerRadii: ( Cgsize) cornerradii
Parameters:
Corners: Enumeration value, you can select a corner
Cornerradii: size of rounded corners
Draw an arc with a center point
+ (Uibezierpath *) Bezierpathwitharccenter: (cgpoint) Center radius: (cgfloat) Radius startangle: (cgfloat) startangle Endangle: (cgfloat) Endangle clockwise: (BOOL) clockwise;
Parameters:
Center: The coordinates of the ARC's central point
Radius: radius of the circle in which the arc is located
StartAngle: The angle value at which the arc starts
Endangle: Angle value for arc end
Clockwise: Whether to draw an arc clockwise
Draw two-dollar curve, general and movetopoint with the use of
-(void) Addquadcurvetopoint: (cgpoint) endPoint controlpoint: (cgpoint) ControlPoint
Parameters:
EndPoint: The end of the curve
ControlPoint: Drawing a datum point of a curve
Draw a curve with three dots, generally with movetopoint
-(void) Addcurvetopoint: (cgpoint) endPoint controlPoint1: (cgpoint) controlPoint1 ControlPoint2: (cgpoint) ControlPoint2
Parameters:
EndPoint: The end of the curve
ControlPoint1: Draw the first datum point of a curve
ControlPoint2: Draw the second datum point of a curve
@end
Uibezierpath iOS Bezier curves