From the course: iOS Development: Auto Layout Programmatically

Using the exercise files - iOS Tutorial

From the course: iOS Development: Auto Layout Programmatically

Start my 1-month free trial

Using the exercise files

- [Instructor] This course includes a large exercise project. I wanna concentrate on layout and not all the auxiliary things, like adding control, navigation, or assets to the project. My goal is to avoid the story board completely. I've included all the assets and structure you'll need for this course in the example project. The project will be several food items for different meals, each in their own scene. Download the exercises folder, open it up and find the copy of the project in exercise files, chapter 00_04 and begin, and then open the project. Set the simulator to iPhone 8 Plus if it isn't already selected, and run the project. You'll see a list of foods on a table. I set up the coffee selection for you. Tap it and you'll see a photo, a label, and the order and back buttons. Both buttons dismiss the scene if tapped. The rest of the entries in this table are based on this template. They don't do much of anything yet. Each scene in this table has the same four elements. It has an image view, a label, and two buttons. We'll change the content of these controls, and its constraints, for different effects. But you'll use the same four controls the entire course. We'll go through a days meal, starting from breakfast, and ending on desserts. In the exercises that follow, I'll show you different techniques for auto layout using these four elements.

Contents