Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在我的项目中使用 CABasicAnimation。我使用了重复计数。但我想在计数增加时更改tovalue。有什么帮助吗?
如果要toValue在动画经过一个循环时更改 ,则应将repeatCountat 保留为 1 并使用animationDidStop:finished:更改的 来创建新动画toValue,依此类推。
toValue
repeatCount
animationDidStop:finished: