Self-Sizing Table View Cells [SUBSCRIBER]

栏目: IT技术 · 发布时间: 4年前

This course is available as part of the raywenderlich.com Professional subscription. To learn more clickhere

Self-Sizing Table View Cells

Pro

Mar 24 2020 · Video Course (32 mins) · Intermediate

Learn how to create self-sizing table view cells, allow them to resize on demand, support Dynamic Type, and even create them with SwiftUI.

Start Watching for Free

Version

  • Swift 5.1, macOS 10.15, Xcode 11.3

iOS & Swift Tutorials

Self-Sizing Table View Cells [SUBSCRIBER]
Self-Sizing Table View Cells [SUBSCRIBER]

Set Up the UITableView

Set up the custom Auteur table view cell to grow as its content changes by applying constraints and setting properties on the UILabel.

Update the UITableView to be aware that its cells may be of varying sizes by declaring an estimatedRowHeight value.

Add in more content to the AuteurTableViewCell, adding constraints to ensure it will continue to grow as needed.

Make Elements Dynamic

Layout the UI elements for the detail view, configuring the UITextView to grow when its content is changed.

Demonstrate how easy it is to grow a cell once AutoLayout constraint are in place by simply changing the text in a UITextView.

Add Dynamic Type support to the cells - which is just another type of content change to which the cell can adjust.

Explore SwiftUI Differences

Implement the Auteur table in SwiftUI, taking advantage of its built-in formatting rules to make laying out the cells easier.

Implement the detail view in SwiftUI, add Dynamic Type support, and demonstrate how easy it is to grow the cells.

Who is this for?

Intermediate iOS developers who want to do more with their UITableViews. It expects you to have familiarity with creating user interfaces with Storyboards in Interface Builder, the concept of Dynamic Type, and some basics of SwiftUI.

Covered concepts

  • Self-sizing UITableView cells
  • Dynamic Type
  • SwiftUI

Contributors

Josh Steele

In my day job, I write apps (Java, iOS) for space and health at APL. I also teach at the JHU Whiting School Engineer for...

Instructor

Adriana Kutenko

Graphic Illustrator with a Bachelor’s Degree in Fine Arts. I am a perpetual perfection seeker with a big passion for History...

Illustrator


以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持 码农网

查看所有标签

猜你喜欢:

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们

C算法(第二卷:图算法)(第3版)

C算法(第二卷:图算法)(第3版)

塞德威克(Sedgewick Robert) / 周良忠 / 第1版 (2004年1月1日) / 2004-4 / 38.0

《C算法(第2卷)(图算法)(第3版)(中文版)》所讨论的图算法,都是实际中解决图问题的最重要的已知方法。《C算法(第2卷)(图算法)(第3版)(中文版)》的主要宗旨是让越来越多需要了解这些算法的人的能够掌握这些方法及基本原理。书中根据基本原理从基本住处开始循序渐进地讲解,然后再介绍一些经典方法,最后介绍仍在进行研究和发展的现代技术。精心挑选的实例、详尽的图示以及完整的实现代码与正文中的算法和应用......一起来看看 《C算法(第二卷:图算法)(第3版)》 这本书的介绍吧!

HTML 压缩/解压工具
HTML 压缩/解压工具

在线压缩/解压 HTML 代码

JSON 在线解析
JSON 在线解析

在线 JSON 格式化工具

Markdown 在线编辑器
Markdown 在线编辑器

Markdown 在线编辑器