码迷,mamicode.com
首页 > 其他好文 > 详细

CABasicAnimation animationWithKeyPath 一些规定的值

时间:2017-05-16 09:58:51      阅读:201      评论:0      收藏:0      [点我收藏+]

标签:string   tran   ati   style   path   position   obj   bsp   pos   

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 一些规定的值

标签:string   tran   ati   style   path   position   obj   bsp   pos   

原文地址:http://www.cnblogs.com/gccbuaa/p/6859620.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!