@interface CAPropertyAnimation : CAAnimation
/* 创建一个动画对象,并将它的keypath设置给path来 */
eg:<span style="font-family: Verdana; font-size: 13px;">CABasicAnimation *transformAnimation = [CABasicAnimation animationWithKeyPath:@"transform"];</span><br style="font-family: Verdana; font-size: 13px;" />
+ (id)animationWithKeyPath:(NSString *)path;
/* 通过keypath来使对应的属性产生动画效果 */
@property(copy) NSString *keyPath;
/* 这个属性用的很少,可以参考这个链接http://www.cocoachina.com/industry/20140701/8995.html<span style="font-family: Arial, Helvetica, sans-serif;">*/ //讲的很仔细</span>
@property(getter=isAdditive) BOOL additive;
/* 指定动画次数是否累计 默认是No*/
@property(getter=isCumulative) BOOL cumulative;
/*可选的,用于修改 <span style="font-family: Arial, Helvetica, sans-serif;">An optional value function that is applied to interpolated values.</span>*/
@property(retain) CAValueFunction *valueFunction;
@end
/** Subclass for basic (single-keyframe) animations. **/
@interface CABasicAnimation : CAPropertyAnimation
@property(retain) id fromValue, toValue, byValue;
</pre><pre name="code" class="objc">