Wrap up – Auto Layout, part 6
Автор: Paul Hudson
Загружено: 2019-03-03
Просмотров: 2367
Описание:
In this video I summarize what you learned in this project, and outline your three challenges:
Try replacing the `widthAnchor` of our labels with `leadingAnchor` and `trailingAnchor` constraints, which more explicitly pin the label to the edges of its parent.
Once you’ve completed the first challenge, try using the `safeAreaLayoutGuide` for those constraints. You can see if this is working by rotating to landscape, because the labels won’t go under the safe area.
Try making the height of your labels equal to 1/5th of the main view, minus 10 for the spacing. This is a hard one, but I’ve included hints below!
This is part of the Hacking with Swift tutorial series, which teaches you to build iOS apps using Swift for free – see https://www.hackingwithswift.com for more information.
Повторяем попытку...

Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: