Recipe: Flipping Views

Transitions extend UIView animation blocks to add even more visual flair. Several transition styles do just what their names suggest. You can flip views to their backs and curl views up and down in the manner of the Maps application. Recipe 4-8 demonstrates how to include these transitions in your interfaces.

Here’s a list of the set of transitions in iOS 7.0. You can see that there are four flips, two curls, a cross dissolve, and a “do nothing” no-op choice:

Image UIViewAnimationOptionTransitionNone

Image UIViewAnimationOptionTransitionFlipFromLeft ...

Get The Core iOS Developer’s Cookbook, Fifth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.