User interface objects can be in different sections of the screen if you test an app on different-sized devices. This video shows how to pin objects to get more control over your user interfaces.
- [Instructor] When you design an application…for iOS 10 you need to keep in mind…that this app can run on many different devices.…Let's say you make an app that's only for iPhones.…You have the iPhone 7 line,…which has the 7 Plus and the 7,…you have the iPhone SE, you have the 6s, the 6s Plus,…all devices with different sizes and aspect ratios.…So let me show you why it's important…to design for multiple sizes.…
So if we look at the bottom of interface builder right here…it says View as iPhone 6s.…This actually enables you to see…what your application looks like as a different device,…or even a different orientation.…You could even see what the app looks like in landscape.…For now we're not going to worry about supporting landscape,…but if I click View as right here…and I hover over to the right a little bit…you'll see that the popup says iPhone SE.…Watch what happens when we view this application…as a different device.…The label gets completely cut off.…
So to remedy this we can use a solution called pinning.…
- Installing Xcode
- Creating an Xcode project
- Configuring the iOS Simulator
- Understanding variables
- Connecting visual objects to variables
- Understanding methods
- Connecting a button to a method
- Using conditional statements
- Setting up the user interface (UI)
- Building a complete iOS app
Skill Level Beginner
1. Set Up Your Coding Environment
Create an Xcode project4m 19s
2. Programming Building Blocks: Variables
3. Programming Building Blocks: Methods
4. Programming Building Blocks: Conditional Statements
5. Plan and Prepare the App
6. Build a Full Application
Next steps3m 11s
- 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.