From the course: iOS Development: Auto Layout Programmatically

Unlock the full course today

Join today to access over 22,700 courses taught by industry experts or purchase this course individually.

Errors in Auto Layout

Errors in Auto Layout - iOS Tutorial

From the course: iOS Development: Auto Layout Programmatically

Start my 1-month free trial

Errors in Auto Layout

- [Instructor] We ran the French Toast layout again and it does not look like I want. It's worse than you know. Bring up the two other simulators. Drag from the products icon into the two other simulators and that will get you a little icon to launch the app. So you can see it on all three. Click on French Toast for both of them. And there's errors all over the place. But we'll resolve these errors in auto layout. The big one that you can see right away is we're supposed to have a space. There's no space here. And these buttons are not the right sizes. Stop the app. And head back to the code and the orderButton.trailing constraint. Sometimes I notice it to be in the reverse order in a constraint. If that happens switch the items in the constraint. So here I've got orderButton trailing equals backButton leading plus 10. And what I'm gonna do is literally just move this from here and move this to here in my comment. And then do the same thing down here in the actual constraint. So this…

Contents