我用弧线绘制了一条通往我的上下文的路径,将其设置为剪辑,并将图像绘制到该剪辑中。CGContextBeginPath(context);CGContextMoveToPoint(context,lineStartPoint.x,lineStartPoint.y);CGContextAddArc(context,lineStartPoint.x,lineStartPoint.y,105,toAngle*M_PI,fromAngle*M_PI,1);CGContextMoveToPoint(context,toLinePoint.x,toLinePoint.y);CGContextClip