开发者

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

开发者 https://www.devze.com 2022-12-31 05:59 出处:网络
This question already has answers here: Animating a custom property of CALayer subclass (3 answers) Closed 7 years ago.
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

精彩评论

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