ios - How to rotate UIImageview anticlock wise -
I am using the following code for the full rotate image for the clock clock
< code> - (zero) runSpinAnimationOnView: (UIView *) Viewing Period: (CGFLoAet) Duration Rotation: (CGFLoate) Repeat: (Float) Repeat; {CABasicAnimation * RotationAnimation; Rotation animation = [with CABasic animation animation: @ "transform. Rotation.z"]; Rotation animation.Tavaluos = [NSNumber Number: Flowmet: Rotation * 2.0 / * Full Rotation * / * Rotation * Period]; Rotation animation Period = period; Rotation animation resolution = yes; Rotation animation.repeatcode = repeat; [view.layer addAnimation: rotation for animation: @ "rotation animation"]; }and is calling it
[manually run animation animationview: _ cycle image duration: 0.1 rotation: repeat MOPI: 13];
This image rotates in the direction of clockwise and puts good locks, but can rotate the same image and the same animation and duration clockwise. Please help
For an anti-clockwise rotation,
rotationAnimation.toValue Set a negative value, for example
rotationAnimation.toValue = @ (- 2.0 * M_PI); For a complete anti-clockwise rotation
Comments
Post a Comment