start and end angle of UIBezierPath?

前端 未结 3 1499
遇见更好的自我
遇见更好的自我 2021-02-07 23:36

I have coded as below for half circle in iOS using UIBezierPath and CAShapeLayer.

 clockWiseLayer = [[CAShapeLayer alloc] init]         


        
3条回答
  •  佛祖请我去吃肉
    2021-02-07 23:53

    I have played with bezierPathWithArcCenter and it works quite strange if clockwise = NO. But if you want to create an circle bezier path with conterclockwise direction you can create a clockwise path and then revert it with bezierPathByReversingPath

    A new path object with the same path shape but for which the path has been created in the reverse direction.

提交回复
热议问题