开发者

How to animate a non-layer property? [duplicate]

This question already has answers here: Animating a custom property of CALayer subclass (3 answers) Closed 7 years ago.

Is there a way to animate properties of my own classes, using the property animation facilities provid开发者_如何学Pythoned by Core Animation?


No, unless these properties wrap calls to animatable properties themselves; for example, a "appearance" property whose setter modifies the "transform" and "alpha" properties, can be animated in an animation context.

Check out for "animatable properties" in the SDK documentation to know which properties can be animated; you can't add more to this list.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜