I am rotating a CALayer and trying to stop it at its final position after animation is completed.
But after animation completes it resets to its initial position.
just put it inside your code
CAAnimationGroup *theGroup = [CAAnimationGroup animation]; theGroup.fillMode = kCAFillModeForwards; theGroup.removedOnCompletion = NO;