CAReplicatorLayer with CAShapeLayer

I started using CAReplicatorLayer to get replications of a CAShapeLayer .

The instanceTransform property of the layer which I use to move the replications does work fine but instanceAlphaOffset and the other color offsets (eg instanceBlueOffset ) have no effect. What can I do to make it work?

Can I subclass CAReplicatorLayer to define custom properties that change on the replications? I'd love to change the fill and strokeColor of the CAShapeLayer with every replications. Or is this somehow else (without subclassing) possible?

链接地址: http://www.djcxy.com/p/74256.html

上一篇: CABasicAnimation不在CAShapeLayer上生成动画

下一篇: 带CAShapeLayer的CAReplicatorLayer