I'm having difficulty animating my custom layer property with Core Anmiation.
My question is how to create a CALayer presentation. Here is what I have now:
@interface MyLayer : CALayer { NSMutableDictionary* customProperties; } @property (nonatomic, copy) NSMutableDictionary* customProperties; @end
And when I try to animate the key path "customProperties.roll" with CABasicAnimation and addAnimation: forKey: it seems that the customProperties variable is not copied from the model level to the presentation level, and the customProperties presentation level looks zero without updating the value of the key roll.
Is there a way to properly animate values ββin a dictionary? What is the exact relationship between the model layer and the presentation level during the animation?
Thanks!
cocoa core-animation
Kay
source share