- [Instructor] The simplest view transition to implement…is showing or hiding a view so let's start with that one.…When the view appears, we want the continue button…to transition from is hidden to is visible…with a nice effect…so let's go into viewWillAppear…and we'll say continueButton.isHidden = true.…Now if you go up to our outlets,…you'll see that our continueButton is of type CustomButton…which you can find in the view subfolder of our project.…
All this is is a simple button class that I set up…to make working with user interactions easier.…All it does right now is called setup method on awakeFromNib…which for now just rounds its corners.…It'll be up to us to animate its target actions later on.…So let's go back into our view controller code…and down at the bottom of our script,…let's make a little bit more room and start a new function.…Let's say func showContinueButton.…Now we can add in the view transition.…
Now we use the transition method…in the UIView class just like animate,…but there are only two options,…
- How animations fit into the view controller lifecycle
- Writing simple view animations
- Making use of animation options
- Adding spring animations
- Working with keyframes
- Using calculation modes
- Animating constraint values
Skill Level Intermediate
1. Getting Started
Starter project review1m 45s
2. Animation Basics
3. Springs and Transitions
4. Working with Keyframes
5. Auto Layout and Beyond
Next steps1m 1s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.