0
A
回答
0
试试这个,你会得到一些想法。
UIBezierPath *bezierPath = [UIBezierPath bezierPath];
[bezierPath addArcWithCenter:center radius:50 startAngle:0 endAngle:2 * M_PI clockwise:YES];
CAShapeLayer *progressLayer = [[CAShapeLayer alloc] init];
[progressLayer setPath:bezierPath.CGPath];
[progressLayer setStrokeColor:[UIColor colorWithWhite:1.0 alpha:0.2].CGColor];
[progressLayer setFillColor:[UIColor clearColor].CGColor];
[progressLayer setLineWidth:0.3 * self.bounds.size.width];
[progressLayer setStrokeEnd:volume/100];
[_circleView.layer addSublayer:progressLayer];
相关问题
- 1. UIBezierPath没有绘制
- 2. 使用UIBezierPath绘制圆角使用UIBezierPath
- 3. 用UIBezierPath绘制一条线
- 4. UIBezierPath绘制线条表示
- 5. 在UIImageView上绘制UIBezierPath
- 6. 绘制饼图与UIBezierPath
- 7. 绘制圆圈vhdl
- 8. UIBezierPath在前一个路径上绘制?
- 9. 如何在CGLayer上绘制UIBezierPath?
- 10. 使用UIBezierPath绘制六边形
- 11. 在swift中使用UIBezierPath绘制形状
- 12. 使用UIBezierPath擦除绘制线条
- 13. 如何绘制可变宽度的UIBezierPath?
- 14. 在UIView :: drawRect()之外绘制UIBezierPath?
- 15. 用UIBezierPath绘制图形曲线
- 16. 围绕自定义UIBezierPath绘制圆
- 17. 沿着弯曲的UIBezierPath绘制渐变
- 18. 如何绘制平滑的UIBezierPath签名?
- 19. 在代码生成UIView上绘制UIBezierPath
- 20. UIBezierPath不会绘制圆角底部
- 21. 无效内容错误而绘制UIBezierPath
- 22. 如何绘制UIBezierPath并与之交互
- 23. 删除UIBezierPath绘图?
- 24. CSS3加载圈
- 25. 在Winform外绘制圆圈
- 26. 用php绘制圆圈imagemagick
- 27. 用圆圈绘制形状
- 28. 绘制移动圆圈
- 29. JavaFX - 绘制甜甜圈
- 30. Pygame绘制/选择圈
根据你的改变UI。 –