In this video, go through the solution to the chapter challenge, step by step.
- [Instructor] Alright, so in keeping with our structure,…let's go down underneath animateGraphicIn,…and start declaring a new function.…We're going to say func animateLoadingLabelPulse.…It's going to take no parameters.…Inside we're just going to call UIView.animate.…And we want to choose the first option…because it has duration, delay, options,…and a completion handler.…So for the duration, I want it to last about half a second.…Delay is going to be zero, I want it to fire immediately.…
Now the options, this is where this is super important.…We want this to repeat and to auto reverse.…So it's pulsing in and out on an infinite loop.…Now for the animations, I'm going to tab and enter…to auto complete that.…Tab into completion and set it to nil.…Now if you're wondering about the naming conventions…of these functions, it's generally good practice to name…your animations with a direction or the effect…they're going to produce.…So for instance, we have animate title label in…because it's animated into the users view and so on.…
- 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.