private func drawCurve(points:[CGPoint]){
let path = UIBezierPath()
path.moveToPoint(points.first!)
for point in points{
path.addLineToPoint(point)
}
self.pathLayer!.removeAllAnimations()
self.pathLayer!.path = path.CGPath
self.pathLayer!.strokeColor = UIColor.redColor().CGColor
self.pathLayer!.lineWidth = 2.0
self.pathLayer!.fillColor = nil
}
绘制曲线
最新推荐文章于 2023-06-13 10:59:37 发布