From the course: iOS 14 Development Essential Training
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Working with pins
From the course: iOS 14 Development Essential Training
Working with pins
- [Instructor] One of the limitations with storyboards is that it's difficult sometimes to support both portrait and landscape orientations. Let's head over to our storyboards by using the jump bar here. If I click that storyboards folder icon, and then click on main.storyboard, it'll take me there quickly. So here, let's say I have my label right here that says changed on it. Let's say I want to put that at the bottom of the screen, like that. And I kind of want to anchor it to the bottom. If I open up this view as area and change the orientation to landscape, you'll notice that I can no longer see that label. And that's because if I scroll down, it's way down here. The coordinate spaces for these UI elements are all based on the top left of the screen, so when I put it down here in portrait mode, the app wants it to be that far away from the top left of the screen, whether it's in portrait or landscape. So what we…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
(Locked)
Choosing between SwiftUI and storyboards3m 4s
-
(Locked)
Drag-and-drop user interface creation with storyboards4m 31s
-
(Locked)
Change a label's text at runtime5m 4s
-
Handling a button press5m 14s
-
(Locked)
Using text gathered from text fields5m 33s
-
(Locked)
Showing the keyboards1m 44s
-
(Locked)
Dismissing the keyboard2m 49s
-
(Locked)
Working with pins4m 27s
-
(Locked)
Troubleshoot common UI problems6m 21s
-
(Locked)
Challenge: Storyboards1m 58s
-
(Locked)
Solution: Storyboards3m 59s
-
(Locked)
-
-
-
-