如何划分UIBezierPath

时间:2018-12-28 07:15:12

标签: ios objective-c uibezierpath

如何将贝塞尔曲线分为24个部分?

       UIBezierPath *path=[UIBezierPath bezierPath];

        //1
        [path moveToPoint:CGPointMake(SNTrueWidth(426), SNTrueHeight(768-50))];
        [path addLineToPoint:CGPointMake(SNTrueWidth(426), SNTrueHeight(768-110))];
        path.lineCapStyle=kCGLineCapRound;
        path.lineJoinStyle=kCGLineJoinRound;

        //2
        [path moveToPoint:CGPointMake(SNTrueWidth(426), SNTrueHeight(768-110))];
        [path addLineToPoint:CGPointMake(SNTrueWidth(770), SNTrueHeight(768-110))];

0 个答案:

没有答案