UIBezierPath和CAShapeLayer 是相互关联的,
shapeLayer.lineWidth=20;
shapeLayer.strokeColor = [UIColor blackColor].CGColor;
设置的是贝塞尔曲线的线条宽度和描边颜色,
self.shapeLayer.strokeStart = 0;
self.shapeLayer.strokeEnd = 0.1;
设置起笔和落笔的相对位置,可以设置用来画圆弧
UIBezierPath和CAShapeLayer 是相互关联的,
shapeLayer.lineWidth=20;
shapeLayer.strokeColor = [UIColor blackColor].CGColor;
设置的是贝塞尔曲线的线条宽度和描边颜色,
self.shapeLayer.strokeStart = 0;
self.shapeLayer.strokeEnd = 0.1;
设置起笔和落笔的相对位置,可以设置用来画圆弧
本文标题:UIBezierPath和CAShapeLayer
本文链接:https://www.haomeiwen.com/subject/yvhlcftx.html
网友评论