(swish)…- [Instructor] For this challenge,…you'll be completing our bouncing ball…animation by adding in the last key frame to move the ball…back to its original position from screen left.…Now, there are two ways of setting the ball's position at…the bottom of the screen with our current setup.…The first option is you can use the screen bottom property…in our animation manager, which'll work just fine.…The other option is to store the ball's origin right before…calling animate key frames and then using that…local variable to set the last key frame.…
Now the choice is really up to you, both will work.…I favor the second way of doing things…just out of habit.…Since having an animated view origin makes things…a lot simpler and cleaner when dealing…with coordinate systems.…You're not always going to be ending an animation…at a nice easily computed point…like the bottom of the screen.…This one shouldn't take you more than a couple minutes,…so give it a shot, and head over the solution…to compare notes.…
- 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.