jjzjj

animationScore

全部标签

ios - 对于大于 PI 的值,CAKeyFrameAnimation 不是线性的

我很难理解为什么动画没有按预期工作。我正在做的是:创建一个带圆弧的UIBezierPath以沿此路径移动Label并为路径描边设置动画。//StartPointis-.pi/2tolettheArcstartatthetop.//self.progress=Valuebetween0.0and1.0letpath:UIBezierPath=UIBezierPath.init(arcCenter:CGPoint.init(x:self.bounds.width*0.5,y:self.bounds.height*0.5),radius:self.bounds.width*0.5,start