草庐IT

ios - 使用 UIBezierPath 绘制圆弧段

我知道有很多与UIBezierPath相关的示例,但是我对用于绘制圆弧的角度感到很困惑,我的要求就像下面的图像画弧线。长度和角度按总数计算。现在我已经创建了一个绘制弧线的函数,如下所示-(void)createCircleWithStartAngle:(int)startAngleendAngle:(int)endAnglename:(NSString*)name{UIView*subView=_viewContainer;//Setuptheshapeofthecircleintradius=125;CAShapeLayer*circle=[CAShapeLayerlayer];//