Class

CAValueFunction

An object that provides a flexible method of defining animated transformations.

Declaration

@interface CAValueFunction : NSObject

Overview

You can use a value function to specify the individual components of an animated transform.

For example, to create a basic animation that rotates a layer from 0° to 180° around its z-axis, you would create a CABasicAnimation object with a fromValue of 0, a toValue of pi, and a valueFunction of a CAValueFunction with a function name of kCAValueFunctionRotateZ.

The value functions kCAValueFunctionScale and kCAValueFunctionTranslate require 3 values, for the individual x, y and z components. When working with these value functions, you specify the animation's fromValue and toValue as arrays.

Topics

Getting Value Function Properties

name

Returns the name of the value function.

Creating and Initializing Value Functions

+ functionWithName:

Returns the value function object identified by the name.

Constants

Rotate Value Functions

Rotate value transform functions construct a 4x4 matrix that represents the corresponding rotation matrix.

Scale Value Functions

Scale value transform functions construct a 4x4 matrix that represents the corresponding scale matrix.

Translate Functions

Translate value transform functions construct a 4x4 matrix that represents the corresponding translate matrix.

Relationships

Inherits From

Conforms To

See Also

Animation

CAAnimation

The abstract superclass for animations in Core Animation.

CAAnimationDelegate

Methods your app can implement to respond when animations start and stop.

CAPropertyAnimation

An abstract subclass of CAAnimation for creating animations that manipulate the value of layer properties.

CABasicAnimation

An object that provides basic, single-keyframe animation capabilities for a layer property.

CAKeyframeAnimation

An object that provides keyframe animation capabilities for a layer object.

CASpringAnimation

An animation that applies a spring-like force to a layer's properties.

CATransition

An object that provides an animated transition between a layer's states.