Class

CAMediaTimingFunction

A function that defines the pacing of an animation as a timing curve.

Declaration

@interface CAMediaTimingFunction : NSObject

Overview

CAMediaTimingFunction represents one segment of a function that defines the pacing of an animation as a timing curve. The function maps an input time normalized to the range [0,1] to an output time also in the range [0,1].

You can create a media timing function by supplying your own cubic Bézier curve control points using the initWithControlPoints:::: method or by using one of the predefined timing functions.

Topics

Creating Timing Functions

+ functionWithName:

Creates and returns a new instance of CAMediaTimingFunction configured with the predefined timing function specified by name.

+ functionWithControlPoints::::

Creates and returns a new instance of CAMediaTimingFunction timing function modeled as a cubic Bézier curve using the specified control points.

- initWithControlPoints::::

Returns an initialized timing function modeled as a cubic Bézier curve using the specified control points.

Accessing the Control Points

- getControlPointAtIndex:values:

Returns the control point for the specified index.

Constants

Predefined Timing Functions

Constants that specify system-provided timing functions, used by functionWithName:.

Relationships

Inherits From

Conforms To

See Also

Animation Timing

CACurrentMediaTime

Returns the current absolute time, in seconds.

CAMediaTiming

Methods that model a hierarchical timing system, allowing objects to map time between their parent and local time.

CADisplayLink

A timer object that allows your application to synchronize its drawing to the refresh rate of the display.