From the course: Advanced iOS App Development: Core Animation

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Creating perspective

Creating perspective - iOS Tutorial

From the course: Advanced iOS App Development: Core Animation

Start my 1-month free trial

Creating perspective

- [Instructor] For this last module, we're gonna explore Core Animation's 3-D chops. Every layer has a transform property that handles its scaling, rotation, and position. We've seen this in action in our previous animations, but when working in 3-D, things are a little different. Let's go to the storyboard one more time. Select the Party Time View Controller and set it as the Initial View Controller. Core Animation has the ability to display layers in three dimensions along the X,Y, and Z axes. By default, it flattens its display so that everything appears 2-D. We can take advantage of this by constructing 3-D transform objects and assigning them to layer transform properties. If you go into the Party Time View Controller, you'll see that there are three labels programatically created for you. I've done this because auto layout doesn't play particularly well with manual changes to transform properties. If you absolutely have to use auto layout in your 3-D animations, use a container…

Contents