Learn the solution to the pasta challenge.
(tinkling) (electronic whirring)…- [Instructor] As you look for a solution,…let's first look at the constraints…I'm supposed to be working with.…So I'm gonna stop the app, get rid of the console,…head over to PastaView Controller,…and let's take a look at what we got here.…Then a layout.…This time everything is in layout,…so it's nice and easier.…And here are my priorities for views,…and there's the constraints.…So I have a whole bunch of constraints here.…
And I do have a little bit of visual format here.…So, I'm gonna be using both of them.…If you look at the H and the V constraint,…I'm horizontally constraining the image view,…then vertically constraining the image view…label and order button with an alignment of leading.…The back button is missing here.…If I scroll down, the back button…is a coded constraint aligned to the top…and bottom of the order button,…and aligned to the trailing edge of the image view.…
Now, doing things like this can get…really confusing, so try to avoid 'em.…But this gives me more scenarios…
- 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.