Pinning allows you to connect user interface objects to the edges of a screen or to other user interface objects. In this video, learn how pinning works in Xcode.
- [Instructor] We've looked at building basic…user interfaces, but to build interfaces…that adapt when the window size changes,…you're going to need to use something called pins.…Pins apply both in macOS development…and all other platforms created by Apple.…The way that pins work is that you have an object pinned…to another object or to edges of the screen.…This works great on iOS where you have…different interface orientations, aspect ratios, and sizes.…
It also works on macOS where you have…different window sizes that the user can customize.…So let's take a look how Auto Layout pins work.…I'll go into the standard editor,…and now I'm looking at my user interface right here.…So to create a pin, usually what I do…is right with putting the object where I wanted it first.…As I move this Name label to the top left,…I start getting these guides,…so these dotted blue lines that are guiding me…toward the edge of the screen.…
So instead of going all the way to the edge,…I'm going to follow those guides.…And I'm going to move this text field over a little bit.…
- Installing Xcode
- Creating your first project
- Editing code
- Creating snippets
- Prototyping in playgrounds
- Implementing version control with Git
- Building and connecting the interface
- Compiling and debugging apps in Xcode
- Creating workspaces for sharing resources and code
Skill Level Beginner
1. Getting Started
2. Edit Code
3. Source Control
4. Interface Builder Basics
5. Compile and Debug
Create a workspace2m 51s
Next steps1m 5s
- 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.