My parent CALayer 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]
.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.