forkingdog / UITableView-FDTemplateLayoutCell

Template auto layout cell for automatically UITableViewCell height calculating
MIT License
9.94k stars 2.01k forks source link

FD库能异步计算高度吗 #407

Open ShouBinCheng opened 4 years ago

ShouBinCheng commented 4 years ago

遇到问题: 1.接口请求数据回来,tableView去reload的数据会有明显卡顿。 2.股票行情类app,ws订阅会大量的数据在异步处理完后,会有大量的回调到主线程渲染UI,造成主线程拥塞,FD渲染高度计算不全,一般小于实际高度,经常导致部分cell高度小于实际高度。

需求: 1.能支持异步计算高度。 2.当接口数据请求回来,可以用FD异步处理好高度,再回调到主线程reload TableView。

Kevin775263419 commented 2 years ago

` // Customize and provide content for our template cell. if (configuration) { configuration(templateLayoutCell); }

return [self fd_systemFittingHeightForConfiguratedCell:templateLayoutCell];`

1.他这是自动布局之后计算的高度,你说的2点这框架离满足差的远吧
2.这种的话用prelayout才行