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.
iOS 严重缺乏的一件事是能够在属性/属性上设置键并使用样条线在它们之间进行插值。有没有人考虑过这个和/或找到解决这个问题的方法?每个人都在使用 Cocos2d 做这种事情吗?Cocos2d 的能力比我需要的多吗?
谢谢, 道格
查看 CAKeyframeAnimation 类。UIViews 使用核心动画层,所以应用到视图层的核心动画......呃......动画也会应用到它的内容。CALayer 上大多数与外观相关的属性都是可动画的——例如,显而易见的属性,例如frameand opacity,还有像backgroundColorand之类的东西cornerRadius。
frame
opacity
backgroundColor
cornerRadius