Auto Layout in macOS allows you to use "pins" for placing and sizing UI objects. This video shows how to use those pins to control your layouts in case a user changes in the window size.
- [Instructor] Auto Layout enables you…to have much more control of your layout…when you're making your apps.…As an example, I'm going to drag out a push button…to the bottom left corner of my window.…I'm going to run the application…and see what we get.…So here's that button just where we expected it to be,…but what if the user resizes the window.…If I resize, the button gets cut off.…It doesn't stick to the bottom left,…it just stays in that position.…So resizing the window makes my layout kind of awkward.…Well, what if I wanted it to stick the bottom left…corner no matter what?…That's where Auto Layout comes in.…
You can use Auto Layout by right-clicking…and dragging from a user interface object.…Right-click and drag to the left edge,…right here this window…and then I'm going to pin the leading space to container.…What that means is the leading space…or the left edge is going to be pinned…to this container object.…Choose that and then, it has this red box around it…and this blue line.…In Auto Layout, red is bad and blue is good.…
- Installing your development tools
- Working with Xcode and the MVC pattern
- Creating basic interactions
- Creating delegate classes
- Building a user interface
- Laying out the UI
- Working with data and table views
- Binding data objects to the UI
- Debugging your app
- Distributing the app
Skill Level Beginner
1. Get Started
2. Core Cocoa Skills
4. Create User Interfaces
5. Arrange User Interfaces
6. Use Data Controls
7. Debug and Troubleshoot
8. Distribute an Application
9. Finishing Touches
Create full screen apps1m 51s
Next steps1m 21s
- 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.