Size Classes in iOS and Xcode 7 are there for you to more easily layout your apps. In addtion to Auto Layout features, Size Classes enable you to develop for various screen sizes and resolutions without having to create multiple files. They allow you to add or remove certain elements depending on the resolution the viewer is currently using. See how size classes work in this movie.
- [Voiceover] As Apple develops more and more devices,…we're seeing more sizes and more aspect ratios.…Now we do have auto layout to deal with this.…But we have an additional tool in Xcode…called size classes.…And size classes are what are handled at the…bottom center of Interface Builder.…Up to this point, we've used the wAny hAny.…This is a layout where you're enabled to develop…for any width and any height.…And if you're using the auto layout constraints,…your layout will apply to all devices…and all orientations.…
But, what if, when a device is in portrait or…in landscape, you want a slightly different layout?…For example,…maybe you don't want an element to hug…the corner of the screen all the time.…You want it to hug that corner most of the time…but it messes up your layout when you go into…landscape and you want to have a completely…different layout.…You can actually define that here with size classes.…To change the size class that you're currently viewing,…click the button at the bottom center of the screen…
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.