O'Reilly logo

iPhone Programming: The Big Nerd Ranch Guide by Joe Conway, Aaron Hillegass

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

19. Controlling Animation with CAAnimation

An animation object drives change over time. While you have not yet used animation objects explicitly, all the animation in iPhone OS is driven by instances of the different animation classes. An animation object is an instruction set (“Move from point A to point B over 2 seconds”) that can be added to a CALayer instance. Many properties of CALayer can be animated by animation objects: opacity, position, transform, bounds, and contents are just a few. When an animation object is added to a layer, that layer begins following the instructions of the animation.

Animation Objects

The abstract superclass for all animation objects is CAAnimation. CAAnimation is responsible for handling timing; it has a ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required