如何生成CALayer的表示层?

Kay*_*Kay 6 cocoa core-animation

我在使用Core Anmiation动画我的自定义图层属性时遇到了困难.
我的问题是如何生成CALayer的表示.这就是我现在拥有的:

    @interface MyLayer : CALayer {
      NSMutableDictionary* customProperties;
    }

    @property (nonatomic, copy) NSMutableDictionary* customProperties;

    @end
Run Code Online (Sandbox Code Playgroud)

当我尝试使用CABasicAnimation和addAnimation:forKey:设置关键路径"customProperties.roll"的动画时,似乎不会将customProperties变量从模型层复制到表示层,并且会出现表示层的customProperties为零,无法更新键"roll"的值.
有没有办法正确地为字典中的值设置动画?动画时模型层和表示层之间的确切关系是什么?
谢谢!