Inherits from | |
Conforms to | |
Framework | /System/Library/Frameworks/QuartzCore.framework |
Availability | Available in iOS 2.0 and later. |
Declared in | CAAnimation.h |
Companion guides |
CAPropertyAnimation
is an abstract subclass of CAAnimation
for creating animations that manipulate the value of layer properties. The property is specified using a key path that is relative to the layer using the animation.
keyPath
property
cumulative
property
additive
property
valueFunction
property
For more about Objective-C properties, see “Properties” in The Objective-C Programming Language.
Determines if the value specified by the animation is added to the current render tree value to produce the new render tree value.
@property(getter=isAdditive) BOOL additive
If YES
, the value specified by the animation will be added to the current render tree value of the property to produce the new render tree value. The addition function is type-dependent, e.g. for affine transforms the two matrices are concatenated. The default is NO
.
CAAnimation.h
Determines if the value of the property is the value at the end of the previous repeat cycle, plus the value of the current repeat cycle.
@property(getter=isCumulative) BOOL cumulative
If YES
, then the value of the property is the value at the end of the previous repeat cycle, plus the value of the current repeat cycle. If NO
, the value of the property is simply the value calculated for the current repeat cycle. The default is NO
.
CAAnimation.h
Specifies the key path the receiver animates.
@property(copy) NSString *keyPath
The key path is relative to the layer the receiver is attached to.
CAAnimation.h
An optional value function that is applied to interpolated values.
@property(retain) CAValueFunction *valueFunction
If the valueFunction
property is not nil
, the function is applied to the values interpolated by the animation as they are applied to the presentation layer. Defaults to nil
.
CAAnimation.h
Creates and returns an CAPropertyAnimation
instance for the specified key path.
+ (id)animationWithKeyPath:(NSString *)keyPath
The key path of the property to be animated.
A new instance of CAPropertyAnimation
with the key path set to keyPath.
CAAnimation.h
Last updated: 2009-03-09