O'Reilly logo

iOS Programming Cookbook by Hossam Ghareeb

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Animating UIViews

In the previous section, we saw how animation works with CoreAnimation. iOS provides us with another mechanism for animation, which is the animation with UIKit framework. Animating UIViews can be done by animating their layers with CoreAnimation or animating the view itself using the animation APIs provided in the UIKit framework, especially in the UIView class.

How to do it...

To animate UIViews, perform the following steps:

  1. Create a new Xcode project with the Master-Details template and name it UIViewAnimation.
  2. The project will be created with the navigation controller template, where you will find a master screen where you can add new cells representing the current time and you will see a details screen when you click on it.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required