Recipe: Key Frame Animations
While nested animation blocks and completion blocks can be used to create fairly advanced animations, the complexity can become overwhelming quickly. In iOS 7, Apple introduced key frame animations to UIKit, powerful animations that are suited for advanced needs. These animations vastly simplify creating complex effects such as the bounce in Recipe 4-10. Key frame animations previously required diving into Core Animation, but now, this powerful animation tool is available directly from UIView.
In traditional key frame animation, you provide the important frames of the animation sequence and their expected timestamps within the animation, and the system is responsible for rendering all the in-between frames to provide ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access