Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ShouBinCheng opened this issue Aug 27, 2019 · 1 comment
Open

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

ShouBinCheng opened this issue Aug 27, 2019 · 1 comment

Comments

@ShouBinCheng
Copy link

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

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

@Kevin775263419
Copy link

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

return [self fd_systemFittingHeightForConfiguratedCell:templateLayoutCell];`

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants