Next Page > Hide TOC

CABasicAnimation Class Reference

Inherits from
Conforms to
Framework
/System/Library/Frameworks/QuartzCore.framework
Availability
Available in Mac OS X v10.5 and later.
Declared in
CAAnimation.h
Companion guides

Overview

CABasicAnimation provides basic, single-keyframe animation capabilities for a layer property. You create an instance of CABasicAnimation using the inherited animationWithKeyPath: method, specifying the key path of the property to be animated in the render tree.

Setting Interpolation Values

The fromValue, byValue and toValue properties define the values being interpolated between. All are optional, and no more than two should be non-nil. The object type should match the type of the property being animated.

The interpolation values are used as follows:

Tasks

Interpolation Values

Properties

For more about Objective-C properties, see “Properties” in The Objective-C 2.0 Programming Language.

byValue

Defines the value the receiver uses to perform relative interpolation.

@property(retain) id byValue

Discussion

See “Setting Interpolation Values” for details on how byValue interacts with the other interpolation values.

Availability
Declared In
CAAnimation.h

fromValue

Defines the value the receiver uses to start interpolation.

@property(retain) id fromValue

Discussion

See “Setting Interpolation Values” for details on how fromValue interacts with the other interpolation values.

Availability
Declared In
CAAnimation.h

toValue

Defines the value the receiver uses to end interpolation.

@property(retain) id toValue

Discussion

See “Setting Interpolation Values” for details on how toValue interacts with the other interpolation values.

Availability
Declared In
CAAnimation.h

Next Page > Hide TOC


© 2007 Apple Inc. All Rights Reserved. (Last updated: 2007-07-24)


Did this document help you?
Yes: Tell us what works for you.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.