Hello i want to do a CABasicAnimation rotation where my view rotates 440 degree. After the animatin i don´t want to reset the view to the old position. It should be on the same position like on the last frame of the animation.
CABasicAnimation *rotate = [CABasicAnimation animationWithKeyPath:@”transform.rotation”];
rotate.toValue = [NSNumber numberWithFloat:degrees / 180.0 * M_PI]; rotate.duration = 4.4; [rotate setFillMode:kCAFillModeForwards]; UIView *animationView = [self getBGContainerViewForSender:sender]; [animationView.layer addAnimation:rotate forKey:@"myRotationAnimation"];</i>
Can anybody tell me how to position the view on the last frame?