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.
Chapter challenge - iOS Tutorial
From the course: Learning iOS Animations with UIKit
Chapter challenge
- [Instructor] Right now, our onboarding screen is looking nice and smooth, but when we select Register and then re-select Sign In, our segmented controller doesn't actually update our UI. It just stays in the Register state. For this challenge, your job is to write a function that will animate the Continue button back to its original position and remove the phone text field with a transition effect. Now remember that transitions deal with manipulating the view hierarchy. When you add a view, all you need to do is add a sub view to the target container, which we've already done. However, when removing a view, you need to delete it from the entire super view with the function remove from super view. This challenge shouldn't take you more than five to 10 minutes, or thereabouts, so if you get stuck, just jump ahead to the solution. Good luck and happy coding.
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.