Auto Layout pins can be used in conjunction with size classes to more fully customize your layouts. In fact, pins can actually be adjusted on a per size class basis. See in thie movie exactly how you can adjust your pins in your apps to accomodate any size class and any resolution or device you want to target.
- [Voiceover] When we look at our layout…with a compact height, you'll notice…that the pins are red on the top and the bottom.…That's because there isn't enough vertical space…to accommodate all the point sizes that we have here.…In other words, these pins are supposed to be too big,…so we need to shrink them down in these compact views.…There are multiple ways to handle that.…For right now, I'm in the size class…of width any, height compact.…That's the rectangle at the top center.…
So this applies to all widths.…So what I'm gonna do here is select the top pin,…remember it has a white stroke around it…when it's selected and it has a shadow,…and I'm going to look over in the attributes inspector…and what I'm going to do here is change…this relation where it says equal…to greater than or equal and…then I can change…this constant value right here.…So it says 161, that's the size of the pin.…
Let's say I change that to zero for example, and…then press enter on my keyboard.…If you look at that, the top pin then changes…
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?
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.