iOS apps can have different layouts depending on the orientation of the device. This tutorial shows how to view different layouts in Xcode, and how to adapt features for different size classes.
- You may have noticed, if we have maintained…aspect ratio on the object, and we're constraining it…to the trailing area of the super view,…that it gets fairly large when we go into landscape mode.…So we have this normal sized square right here…in portrait, we go into landscape, and it becomes gigantic.…Now, if you want that for your application,…then this is fine.…But if you wanted to use the bottom edge,…instead of the right edge, in landscape mode,…you can do that as well by using…something called Size Classes.…
Size Classes allow you…to adapt your layouts based on…the width and the height of the device.…Each IOS device…has either a regular-size width,…or a compact width, and a regular-size height…or a compact height.…These vary in both portrait and landscape mode.…You can see which devices have which widths…and heights through the view as area.…
So when you're showing it, you can see that an iPhone 4s,…in landscape mode has a compact width and a compact height.…In portrait mode, it has a compact width…and a regular height.…
- Installing and using Xcode
- Working with storyboards
- Working with UI objects and events
- Resizing objects and layouts dynamically
- Coding UI objects such as buttons
- Loading and displaying data in table views
- Testing your iOS app
Skill Level Beginner
1. Xcode Fundamentals
2. Core Skills
3. Responsive UI Design
4. Coding UI Objects
5. Table Views
6. App Flow and Testing
Next steps1m 8s
- 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.