Join Steven Lipton for an in-depth discussion in this video Using the exercise files, part of iOS Development: Auto Layout Programmatically.
- [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.
- 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.