-
Notifications
You must be signed in to change notification settings - Fork 207
CollectionViewAutoFitAdapter
xu.jingyu edited this page Jan 14, 2020
·
7 revisions
CollectionViewAutoFitAdapter extends [ CollectionViewAdapter](https://github.com/momotech/MLN/wiki/ CollectionViewAdapter)
用于自适应Cell高度。需要配合自动布局使用
CollectionViewAutoFitAdapter() 构造方法
sizeForCell(function sizeForCellCallback) ❌
设置cell大小的回调
sizeForCellByReuseId(string reuseId, function sizeForCellByReuseIdCallback) ❌
根据reuseid设置cell大小的回调