Draw circle with UIBezierPath

后端 未结 3 931
野趣味
野趣味 2020-12-08 22:45

I\'m trying to draw a circle using UIBezierPath addArcWithCenter method :

UIBezierPath *bezierPath = 
  [UIBezierPath bezierPathWithOvalInRect:CGRectMake(0.,         


        
3条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-08 23:29

    I have no idea what you expect and what's wrong with your actual result—but a radius of 0 in your second line of code seems fishy. It just adds a point at center to the current path (which already includes a circle).

提交回复
热议问题