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

CABasicAnimation animationWithKeyPath 一些规定的值

时间:2014-09-17 16:55:34      阅读:309      评论:0      收藏:0      [点我收藏+]

标签:style   blog   http   color   io   os   ar   for   div   

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.


bubuko.com,布布扣


我们可以通过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 一些规定的值

标签:style   blog   http   color   io   os   ar   for   div   

原文地址:http://blog.csdn.net/u014624597/article/details/39343809

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