Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
There are various ways of performing animations in iOS: capabilities are provided at a relatively low level, but also at a higher level. The highest level we can get is through UIKit, which is what we will be discussing in this section. UIKit includes some low-level Core Animation functionalities and presents us with a really clean API to work with.
The starting point for performing
animations in UIKit is to call the beginAnimations:context: class method
of the UIView class. Its first
parameter is an optional name that you choose for your animation, and
the second is an optional context that you can retrieve later to pass
to delegate methods of the animations. We will talk about these
shortly.