Auto Layout is the Xcode and iOS way of handling different device sizes, aspect ratios, and resolutions. This video explains the basics of Auto Layout in Xcode.
- [Instructor] Let's say you're building an application…and you're going to have a logo on your screen…as the app is launching.…You want that logo to be a certain size…and to stay in the center of the screen…whether the user is viewing it in portrait or in landscape.…Let's take a look at how you might solve that problem…using something called AutoLayout.…We'll start by creating a new View.…So I'll click the button in the toolbar.…And then you can search for UIView or just View…until you find the object that's called View.…
So not View Controller, just plain old View.…Click and drag it out.…Drop it on the screen.…Don't deselect it,…because it might be hard to find after you do.…And with it selected,…head over to the Attributes Inspector.…That's in the Inspector bar in the Inspectors areas.…Make sure that's showing.…Click the button to go to the Inspector bar,…and then change the background to a color.…I'll just choose a bright green color.…Doesn't matter which color you choose.…You just need to be able to see it on the white background.…
- Installing and using Xcode
- Working with storyboards
- Working with UI objects and events
- Resizing objects and layouts dynamically
- Coding UI objects such as buttons
- Loading and displaying data in table views
- Testing your iOS app
Skill Level Beginner
1. Xcode Fundamentals
2. Core Skills
3. Responsive UI Design
4. Coding UI Objects
5. Table Views
6. App Flow and Testing
Next steps1m 8s
- 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.