Cover by Joe Conway, Aaron Hillegass

Safari, the world’s most comprehensive technology and business learning platform.

Find the exact information you need to solve a problem on the fly, or go deeper to master the technologies and skills you need to succeed

Start Free Trial

No credit card required

O'Reilly logo

23Controlling Animation with CAAnimation

An animation object drives change over time. 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. When an animation object is added to a layer, that layer begins following the instructions of the animation. Many properties of CALayer can be animated by animation objects: opacity, position, transform, bounds, and contents are just a few.

Animation Objects

While you have not yet used animations objects explicitly, all animation in iOS is driven by them, including the animations you saw in the last chapter. The abstract superclass for all animation objects is CAAnimation. CAAnimation is responsible for handling timing; for instance, ...

Find the exact information you need to solve a problem on the fly, or go deeper to master the technologies and skills you need to succeed

Start Free Trial

No credit card required