Size Classes can also hide or show views. Using a setting in the attribute inspector, you can choose which views are showing or hidden in which size classses. In this movie, you will see precisely how to adjust your user interfaces in interface builder to show or hide the views you want in each size class.
- [Voiceover] Using size classes you can hide…or show certain views and you can even add new views…to specific size classes.…Let's look at how that works.…I'm just going to use labels here in this example…but keep in mind that these concepts apply…to any kind of views that you can grab…from the object library.…So I'm going to search for a label in the object library…and then just drag it onto the screen…and I'm going to change that label…to say any width,…any height and I'll need to just place it.…
So we have any width and any height and…if we change the size class to compact width, compact height…or we change to regular width and regular height…that label is still there.…So say you had a user interface element…that just didn't fit with a particular size class.…For example, you didn't want this showing…when you're in a compact width.…So we change to the size class we want to modify…for example, compact width and any height,…that's the center-left rectangle.…
And now I want to hide this label.…Keep in mind, we cannot change the text of a label…
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
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.