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

Solution: Pasta - iOS Tutorial

From the course: iOS Development: Auto Layout Programmatically

Start my 1-month free trial

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…

Contents