How to save latest position of animated view?
here is my code, generally my aim is to rotate view about 60 degree in z axis.
CABasicAnimation rotationAnimation = new CABasicAnimation ();
rotationAnimation.KeyPath = "transform.rotation.y";
rotationAnimation.From = new NSNumber (0);
rotationAnimation.To = new NSNumber (0.7);
rotationAnimation.Duration = 5;
rotationAnimation.AutoReverses = false;
rotationAnimation.FillMode = "kCAFillModeForwards";
rotationAnimation.RemovedOnCompletion = false;
this.contentViewContainer.Layer.AddAnimation (rotationAnimation, "rotationAnimation");
this.contentViewContainer.Layer.ContentsGravity = CALayer.GravityResizeAspectFill;
CATransform3D transform = CATransform3D.Identity;
nfloat d = (nfloat)(1.0 / 500.0);
transform.m34 = d;
this.contentViewContainer.Layer.Transform = transform;
here is how it looks