Learn the solution to the planning challenge.
- [Instructor] Time for the solution.…The idea here is to plan out and make a map…of your constraints to make it easier to code them.…I'm not worried about actual scale as I do this.…I just get the numbers down…so I can use it as a map when I code.…There's lots of solutions,…but I'll give you two that I like.…The first step would be to pin the label…to the top, leading, and trailing sides by 20 points.…Then cite the height to 40.…Next, pin the bottom of the label,…the top of the order button, with a space of 20.…
The next step makes up one of two solutions I'd use.…The first solution would be keep using pins.…Pin the order button to the leading and trailing…edges of the view with a 20 point space.…Then pin the bottom to the top of the back button…with a 20 point space.…Pin the back button to the leading, trailing, and bottom…again with a 20 point space.…When using buttons, there's a second option…I'd like more.…Instead of pinning the leading and trailing edges…of the back button,…I'll align them with the order button.…
- 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
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.