From the course: Learning iOS Animations with UIKit

Unlock the full course today

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

View transitions, part 2

View transitions, part 2 - iOS Tutorial

From the course: Learning iOS Animations with UIKit

Start my 1-month free trial

View transitions, part 2

- [Instructor] Now that we've got our continue button showing, let's get the segmented controller to animate in an extra text field when the register option is selected. Let's go back into our springs and transitions view controller, add some space underneath our show continue button and add a new function. Going to call this add text field with transition. And here we're just going to add a new UIview transition. Going to say Uiview dot transition with, and here we're going to target our text field container view, that's what actually houses the email and password text fields currently and that's where we want to add our third text field. So we're going to say self dot text field container. This animation is going to last about one second. Now for the options we're going to use transition curl up for this one to get a nice different effect. Tab in and out will complete the animations, and set the completion to nil. Now all we need to do here is add the phone text field as a sub view…

Contents