开发者

Adding sublayers while animating parent CALayer in iOs

开发者 https://www.devze.com 2023-03-06 20:59 出处:网络
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 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].

0

精彩评论

暂无评论...
验证码 换一张
取 消