I'd like to have a better understanding of this parameter in
+ (id)animationWithKeyPath:(NSString *)keyPath
They just say: "The key path of the property to be animated."
In some example snippets I see things like:
CABasicAnimation *fadeInAnimation = [CABasicAnimation animationWithKeyPath:@"opacity"];
CAKeyframeAnimation *animatedIconAnimation = [CAKeyframeAnimation animationWithKeyPath: @"frameOrigin"];
Is there a list or rule of thumb for determining the correct key path parameter? i.e. when I want to animate the width of a frame, what kind of rules would I have to follow to get to the correct key path parameter string?