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

Working with pins

From the course: iOS 14 Development Essential Training

Start my 1-month free trial

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…

Contents