Auto Layout is Xcode and Interface Builder's tool for controlling your layouts in Xcode 7. Using auto layout, you can set constraints called pins that dictate where your user interface objects should be on the screen and how far apart or close they should be to other user interface elements when developing in the iOS SDK.
- [Voiceover] So, let's talk more about Constraints.…We've looked at, so far, pinning objects…to the sides of the screen, but what if…we wanted to expand or contract the size of an object?…In the Object Library I'm going to…search for a Text View, and I'm going to drag and drop…one on the screen.…With it on the screen, I'm going to just select it and then…drag the handles out to make it fill…the width of the screen.…Let's say I wanted this to expand or contract…based on the width of my screen.…So, we can do that with Pins.…
Now, we've looked at right clicking and dragging,…but another way you can add Pins…is by clicking the Pin button at the bottom, right corner…of Interface Builder.…When I click that button, the Add New Constraints…popup opens.…Now, in here I am asked which Constraints I want to add.…The section at the top deals with pinning to the top,…bottom, left and right nearest neighbor.…See where it says Spacing to nearest neighbor.…So, if you put an object underneath it,…that Pin is then going to be pinned…
Interested in developing for Apple Watch or Apple TV? Get a sneak peek in Chapter 9. The course wraps up with a look at the submission process for the App Store.
- Installing Xcode and the iOS SDK
- Creating a simple iOS app
- Creating a basic interaction with a button
- Choosing an object as a first responder
- Creating a user interface with Interface Builder and Auto Layout
- Working with sliders and progress bars
- Creating views to show images and web pages
- Developing responsive layouts with size classes
- Understanding the iOS architecture
- Loading data in table views
- Transitioning between views
- Developing for the iPad, Apple Watch, and Apple TV
- Submitting apps to the App Store
Skill Level Beginner
Building a Note-Taking App for iOS 9 with Swiftwith Todd Perkins1h 20m Intermediate
1. Prepare to Develop an iOS App
2. Core Skills
3. Basic iOS UI
4. More UI Objects
5. Size Classes
6. iOS Application Architecture
7. Table Views
8. Multiple-View Applications
9. iPad, Watch, and Apple TV Development
10. Finish and Submit to the App Store
Next steps2m 10s
- 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.