美文网首页
UIBezierPath和CAShapeLayer

UIBezierPath和CAShapeLayer

作者: iOS坚持者 | 来源:发表于2018-03-26 00:30 被阅读9次

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