Class
AutomaticDimension
public class AutomaticDimension
自动计算高度对象 主要集中处理关联对象内容
Relationships
Nested Types
AutomaticDimension.Constraints
设置自动计算高度底部视图的约束条件
Nested Type Aliases
ReloadCellHeightCompletion
public typealias ReloadCellHeightCompletion = (_ isCompletion:Bool) -> Void
立即刷新Cell
高度完毕闭包
Parameters
Name | Type | Description |
---|---|---|
isCompletion | 是否刷新完毕 |
Properties
view
public lazy var view:UIView
布局对应的底部视图
如果想做到自动计算高度 则需要UITableView
所有的UIView
基于view
进行布局。不能和UITableView
的ContentView.bottom
设置约束
一是如果和UITableViewCell.contentView.bottom
产生约束,那么就会有约束冲突的出现,对于计算真正的高度不准确,产生BUG
出现