Master iOS Auto Layout (Swift/Xcode)

所在平台: Udemy

课程主页: https://www.udemy.com/course/ios-auto-layout-swiftxcode/

课程评论:没有评论

第一个写评论        关注课程

课程简介

**课程名称:** Master iOS Auto Layout (Swift/Xcode) **课程概述:** 本课程旨在帮助开发者掌握 iOS Auto Layout 技术,实现响应式 UI 设计。Auto Layout 允许我们为应用程序中的 UI 组件设置约束,使其能够根据用户的设备尺寸、方向等因素自动调整位置和大小,从而在不同设备上提供一致的用户体验。 随着设备形态和尺寸的日益多样化,精通 Auto Layout 变得至关重要。本课程将采用基于约束的方法,通过 Storyboard 和 Swift 编程两种方式来设置布局约束。其中,编程方式尤为重要,因为它是在运行时动态更新约束的关键。 **课程内容涵盖:** * 基于方向的布局 * Size Classes * 约束优先级 * 比例约束 * 内容拥抱和压缩 * 运行时更新约束 * NSLayoutConstraint 和 Layout Anchor * Visual Format Language * 动态TableViewCell * StackView * ScrollView **学习目标:** 完成本课程后,您将能够自信地在您的 iOS 项目中处理 Auto Layout,并熟练运用各种技术来实现灵活且响应式的用户界面。

课程评论(0条)

课程详情

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 layoutSize classesConstraint priorityProportional constraintsContent hugging and compressionRuntime updateLayout anchor NSLayoutConstraintVisual Format LanguageDynamic tableview cellStackviewScrollviewBy the time we are done, you should be comfortable dealing with auto layout in your project.

课程标签

0人关注该课程

主题相关的课程