Adding sublayers while animating parent CALayer in iOs
My parent CALay开发者_StackOverflow中文版er is constantly moving with key frame animations. I need to add sublayers while it is moving. Is it possible? Any suggestions on how to achieve this?
Answering my question: Create a NSThread
that adds sublayers to the animated layer. Then call [CATransaction flush]
.
精彩评论