- [Lecturer] Before we jump into the solution here,…you might have noticed an error with the image views offset…in the screen top keyframe.…The offset is being applied to the x axis, but since…this is the top of the screen, we need the image view…to be offset on the y axis instead.…Now, with that fixed, let's go down to the bottom…of our animate keyframes and add in a new comment.…I'm going to say this is our Bottom and we're going to add…a new UI view.…Add keyframe with relative start time, it's going to be .75,…relative duration is .25 and for the animations,…there are two ways of going about this, as I mentioned.…
So, we're going to go through the first one by using…our screen Bottom property on our Animation Manager.…So, let's just say, self.animationTarget.center=…AnimationManager screen bottom and we will…apply the offset, so, self.animationTarget.center.y…minus =self.targetOffset.…Now, the second option I mentioned is to store…a local variable at the top of the function, so,…outside animate keyframes to store the actual origin…
- 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.