What is the role of key path in Core Animation?
问题 I'm getting acquanted with Core Animation and trying to implement simple movement along a curve line. i've found really helpful piece of code here There is a line there: CAKeyframeAnimation *pathAnimation = [CAKeyframeAnimation animationWithKeyPath:@"position"]; Why do we need this property named keyPath? What is its role? The code works only if use the proposed NSString @"position" and nothing else. So is it a built-in constant string? It doesn't look so. Hope you see my confusion. Can you