Master iOS Auto Layout (Swift/Xcode)

th_fcHhHPhAcb7GREdv915SOIoR8UW9qsjM

自动布局允许我们在我们的应用程序中设计和布局 UI 组件,这些组件将响应用户的设备外形和方向。它将自动动态计算 UI 组件的位置和大小,以跨设备在 iOS 应用程序中提供一致的用户体验,并且随着越来越多的设备外形尺寸被引入,掌握自动布局至关重要,作为开发人员,我们必须非常舒服处理这个。

iOS 中的自动布局使用基于约束的方法,这意味着我们为每个 UI 组件设置约束,以适应外部(即设备大小、旋转)和内部(即国际化)变化。在本课程中,我们将使用 Xcode 故事板方法以及使用 Swift 的编程方式来设置我们的布局约束。在某些情况下,编程方式可能是唯一的方式,特别是如果我们想在运行时更改约束。

Master Auto Layout for Swift iOS Development with Xcode Storyboard and Programmatic approach

Last Updated 02/2019
MP4 | Video: h264, 1280×720 | Audio: AAC, 44.1 KHz, 2 Ch
Genre: eLearning | Language: English + srt | Duration: 19 lectures (4h 24m) | Size: 3 GB

 

What you’ll learn
Properly laying out UI components that will adjust to devices sizes and orientation.
Get comfortable with auto layout UI using Storyboards.
Learn auto layout programmatically

Requirements
Basic iOS development
Latest Xcode

Description
Auto Layout allows us to design and laying out UI components within our app that will be responsive to users’ devices form factor and orientation. It will dynamically calculate the positions and sizes of the UI components automatically to deliver a consistent users experience in iOS app across devices, and with more and more devices form factors being introduced, mastering auto layout is critical and as developer we have to be really comfortable dealing with this.

Auto layout in iOS uses a constraint-based approach, which means we are setting constraints for each of the UI components that will adapt to both external (ie device size, rotation) and internal (ie internationalization) changes. In this course we will be using the Xcode storyboard approach as well as programmatic way using Swift to set our layout constraints. In some cases programmatic way might be the only way especially if we want to change the constraints at runtime.

There are a lot to cover on this course

Orientation based layout

Size classes

Constraint priority

Proportional constraints

Content hugging and compression

Runtime update

Layout anchor

NSLayoutConstraint

Visual Format Language

Dynamic tableview cell

Stackview

Scrollview

By the time we are done, you should be comfortable dealing with auto layout in your project.

Who this course is for
Beginner and Intermediate iOS Developer

资源下载此资源仅限VIP下载,请先
本站资源仅限VIP会员下载点击购买VIP会员

原创文章,作者:steven,如若转载,请注明出处:https://rr3d.cn/32706.html

赞 (0)
steven的头像steven
上一篇 2022年5月7日
下一篇 2022年5月7日

相关推荐

发表回复

登录后才能评论
分享本页
返回顶部