我正在使用CABasicanimation来旋转UIView.我正在使用此代码,
CABasicAnimation *rotationAnimation = [CABasicAnimation animationWithKeyPath:@"transform.rotation.z"]; NSNumber *currentAngle = [CircleView.layer.presentationLayer valueForKeyPath:@"transform.rotation"]; rotationAnimation.fromValue = currentAngle; rotationAnimation.toValue = @(50*M_PI); rotationAnimation.duration = 50.0f; // this might be too fast rotationAnimation.repeatCount = HUGE_VALF; // HUGE_VALF is defined in math.h so import it [CircleView.layer addAnimation:rotationAnimation forKey:@"rotationAnimationleft"];
在这里我想要完美的X,Y位置,而“UIView”正在旋转.
如果有人知道请帮助我.
提前谢谢你
解决方法
我得到了这个问题的答案请转到此链接以获得答案