Protocol
AutomaticDimensionCell
public protocol AutomaticDimensionCell: UITableViewCell
自动计算高度协议
如果想让UITableViewCell
支持自动计算高度,则需要实现AutomaticDimensionCell
协议
Relationships
Conforms To
UITableViewCell
Default Implementations
reloadHeight(completionHandle:)
func reloadHeight(completionHandle:@escaping AutomaticDimension.ReloadCellHeightCompletion)
立即进行刷新 执行performBatchUpdates
Parameters
Name | Type | Description |
---|---|---|
completionHandle | @escaping AutomaticDimension.ReloadCellHeightCompletion |
刷新完毕的回掉 |
setBottomViewConstraints(constraints:)
func setBottomViewConstraints(constraints:AutomaticDimension.Constraints)
设置底部视图的约束 初始化和更新self.ad.view
约束
Parameters
Name | Type | Description |
---|---|---|
constraints | AutomaticDimension.Constraints |
约束条件 |