Join Steven Lipton for an in-depth discussion in this video Warming up the simulators, part of iOS Development: Auto Layout Programmatically.
- [Instructor] We'll be using three simulators for this course to show you the differences Auto Layout can do to devices. Xcode simulators can take a while to get going the first time you use them. Before I start using simulators, I like preloading them. To make the exercises move along quickly, I suggest launching all three simulators we're gonna use before working on the material. Open Xcode and go to the icon in the dock, right click, go to Open Developer Tool, and go to Simulator.
You'll have some device show up. In this case, it's an iPhone X. That's one of the ones I want and I'm just gonna start to load right here. I'm gonna go over to Hardware and go to Device and you'll see where it says iOS 11.3, I'm gonna add two more devices. I'm gonna add the iPhone 8 Plus. And then I'm gonna go here and go to Device, and add the iPad Pro 9.7 inch.
And these will start to load. Once they're all up again, I'm gonna click on each one of the devices, go to Hardware, and Erase All Content and Settings. This will erase everything that's there already. So, I'm gonna go ahead and do that for the iPhone 8 Plus. It'll ask me if I wanna erase, go ahead. Hardware, Erase All Content and Settings. Again, it warns me I'm gonna get rid of everything and put it back in the initial state.
And I'm gonna do the same thing for the iPad. This does two things. It starts me on a clean slate so I don't have anything else conflicting with my applications. And it also cleans up a lot of extra memory that's taking up in your Mac. So, it helps in a lot of different ways. So, this will go ahead and load and we'll come back and see the screens come back up again. Once they come back up, you'll wanna do one more thing.
Go to Simulator, go to Options, and check on Keep in Dock. That way, you can get to them easily. Now you have a clean setup for the Simulators you'll be using in this course.
- 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.