- [Instructor] For the last newsletter screen animation,…we're going to programmatically create a label…and set its constraints and then animate it.…To make this a bit easier, we can break the process…up into three stages.…Stage one is to programmatically…create the view and add it as a parent.…Now, luckily for us, stage one is almost ready to go.…As the starter project has our newsletterInfoLabel,…programmatically created in viewDidLoad.…Stage two is to set the labels' constraints in code,…because we haven't actually set a frame,…so it needs to know how big it is and where it's positioned.…
And stage three is to finally animate…those constraints the way we'd like.…Let's go down underneath animateWelcomeLabel…and start ourselves our last animation function.…We're going to call this addDynamicInfoLabel,…and inside here, we're just going…to call newsletterView.addSubview,…and we're just going to add in the newsletterInfoLabel.…So, there's stage one complete.…Now, stage two is a big more complicated.…
Instead of creating multiple NSLayoutConstraints…
- 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.