我正在学习一种不同的方法来创建自定义指标。下面是使用CABasicAnimation实现任务的教程中的部分代码。-(void)spin{CABasicAnimation*spinAnimation=[CABasicAnimationanimationWithKeyPath:@"transform.rotation"];spinAnimation.toValue=[NSNumbernumberWithFloat:2*M_PI];spinAnimation.duration=self.animationDuration;spinAnimation.delegate=self;[self.l