From the course: iOS Development: Auto Layout Programmatically
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Solution: Pasta - iOS Tutorial
From the course: iOS Development: Auto Layout Programmatically
Solution: Pasta
(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…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
-
(Locked)
Embed subviews6m 57s
-
(Locked)
Add constraints to subviews7m 42s
-
(Locked)
Add Visual Format Language to subviews7m 4s
-
(Locked)
Intrinsic content size6m 36s
-
(Locked)
Inequalities in constraints8m 23s
-
(Locked)
Priorities in coded constraints7m 8s
-
(Locked)
Size ranges in Visual Format3m 33s
-
(Locked)
Challenge: Pasta56s
-
(Locked)
Solution: Pasta7m 54s
-
(Locked)
-
-