CABasicAnimation animationWithKeyPath 一些规定的值

Posted gccbuaa

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了CABasicAnimation animationWithKeyPath 一些规定的值相关的知识,希望对你有一定的参考价值。

CABasicAnimation   animationWithKeyPath   Types

When using the ‘CABasicAnimation’ from the QuartzCore Framework in Objective-C, you have to specify an animationWithKeyPath.  This is a long string and is not easily listed in the CABasicAnimation, CAPropertyAnimation, or the CAAnimation class.  I ended up finding a handy chart within the Core Animation Programming guide in Apple’s iPhone OS Reference Library.  Hope this helps save someone time, at least it will for me.



我们能够通过animationWithKeyPath键值对的方式来改变动画
animationWithKeyPath的值:
 
transform.scale = 比例轉換
transform.scale.x = 闊的比例轉換
transform.scale.y = 高的比例轉換
transform.rotation.z = 平面圖的旋轉
opacity = 透明度
 
margin
zPosition
 
backgroundColor
 
cornerRadius
borderWidth

frame
bounds

contents
contentsRect
cornerRadius

hidden

mask
masksToBounds

position

shadowColor
shadowOffset
shadowOpacity
shadowRadius


以上是关于CABasicAnimation animationWithKeyPath 一些规定的值的主要内容,如果未能解决你的问题,请参考以下文章

如何在动画 CABasicAnimation 时改变速度

使用 UINavigationController 滑动边缘时 CABasicAnimation 重置

如何使用 CABasicAnimation 更改 Frame.size

CABasicAnimation animationWithKeyPath 一些规定的值

UIPercentDrivenInteractiveTransition 与 CABasicAnimation

SceneKit – SCNAction 和 CABasicAnimation 有啥区别?