Animating Views with Core Animation

Previously we looked at tasks from the class UIView that helped create animations. These tasks provide an opaque view into how animations are implemented on iOS. This section will take a closer look at how animations are defined with the framework known as Core Animation. Core Animation is the framework responsible for most animations on iOS devices and is the framework used behind the scenes by the static UIView tasks.

The best way to start understanding Core Animation is to continue our example and see how we create the animation of the coins trading places. Figure 4–8 shows the animation of the coins trading places.

Figure 4–8. Coins switching locations

The coin in the first column and second row (a ...

Get Beginning iOS 5 Games Development: Using the iOS 5 SDK for iPad, iPhone, and iPod Touch now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.