I'm going to get to know Core Animation and try to implement a simple movement along a curve line. I found a really useful piece of code here
There is a line:
CAKeyframeAnimation *pathAnimation = [CAKeyframeAnimation animationWithKeyPath:@"position"];
Why do we need this property called keyPath? What is his role? The code only works when using the proposed NSString @ position and nothing more. So is this an inline constant string? It doesnβt look like that. I hope you see my confusion. Could you please explain in simple terms how I can manage this KeyPath property?
source share