Learn the solution to the iPhone Plus challenge.
(soft music) (whooshing)…- [Instructor] Okay, there's a lot of solutions…for this particular case,…but the simplest thing,…and I want to show you how to do it on the simplest version,…is our goal is to take whatever is holding this leading edge…to the label to make it a trailing edge of the label.…That's our goal.…Go ahead and stop the app,…close everything up,…move over to CakeViewController.…
You can even get rid of navigation for now…so that we have plenty of room.…Head down to viewWillLayoutSubviews.…You see I've already got a lot of this code already…in place, so you're in good shape there.…Just like we just did.…Now, scroll on down a little further.…Almost all of our constraints are the same…as what we just did.…We just have to find one that will do what we need it to do…and it just so happens to be right here.…Is the orderButton.leading is equal to the label.leading?…This is the constraint I gotta work with.…
What I'm gonna do with this is very simple.…Let's make a space.…I'm gonna take this dynamic constraints mark…
- When and why to use Auto Layout programmatically
- Creating constraints in Swift
- Resolving errors in Auto Layout
- Using the safe area
- Working with the Visual Format Language
- Adding a stack view
- Harnessing the power of inequalities and priorities in constraints
- Understanding traits and size classes
Skill Level Intermediate
Learning LayoutTest for iOS Developmentwith Kyle Sherman1h 43m Intermediate
Designing iOS and Android Appswith Renata Phillippi1h 6m Intermediate
1. Basic Concepts in Auto Layout
2. Coding Constraints
3. The Visual Format Language
4. Stack Views
5. Advanced Layout
6. Size Classes
Next steps1m 42s
- 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.