美文网首页iOS
UIBezierPath

UIBezierPath

作者: 6129b93b59e2 | 来源:发表于2016-03-01 16:32 被阅读48次
  - (void)addArcWithCenter:(CGPoint)center radius:
  (CGFloat)radius startAngle:(CGFloat)startAngle 
  endAngle:(CGFloat)endAngle clockwise:(BOOL)clockwise

这个方法可以画出一段弧线 。
center:圆心的坐标
radius:半径
startAngle:起始的弧度 endAngle:圆弧结束的弧度
clockwise:YES为顺时针,No为逆时针

(startAngle:起始的弧度 endAngle:圆弧结束的弧度 )这两个东西我放到了一行 可以看些官网的解释
https://developer.apple.com/library/prerelease/tvos/documentation/UIKit/Reference/UIBezierPath_class/#//apple_ref/occ/clm/UIBezierPath/bezierPathWithArcCenter:radius:startAngle:endAngle:clockwise:

然后盗个官网的图

radians_circle.jpg

相关文章

网友评论

    本文标题: UIBezierPath

    本文链接:https://www.haomeiwen.com/subject/yvtnkttx.html