I am using this code for rotate animation:
CABasicAnimation *spinAnimation = [CABasicAnimation
animationWithKeyPath:@"transform.rotation.z"];
spinAnimation.fromValue =[NSNumber numberWithFloat:0];
spinAnimation.toValue = [NSNumber numberWithFloat:3.30];
spinAnimation.duration =2;
[imgArrow.layer addAnimation:spinAnimation forKey:@"spinAnimation"];
In this code imageview's bottom point is not fixed. I want to set up the image such that it rotates from a fixed point on the bottom of the image (like a speedometer).
Can you help me with this?