TableView Documentation

Class Automatic​Dimension

public class AutomaticDimension  

自动计算高度对象 主要集中处理关联对象内容

Nested Types

AutomaticDimension.Constraints

设置自动计算高度底部视图的约束条件

Nested Type Aliases

Reload​Cell​Height​Completion

public typealias ReloadCellHeightCompletion = (_ isCompletion:Bool) -> Void

立即刷新Cell高度完毕闭包

Parameters

is​Completion

是否刷新完毕

Properties

view

public lazy var view:UIView  

布局对应的底部视图 如果想做到自动计算高度 则需要UITableView所有的UIView基于view进行布局。不能和UITableViewContentView.bottom设置约束 一是如果和UITableViewCell.contentView.bottom产生约束,那么就会有约束冲突的出现,对于计算真正的高度不准确,产生BUG出现