forkingdog / forkingdog/UITableView-FDTemplateLayoutCell

invalidateAllHeightCache:和invalidateHeightAtIndexPath:无效

Open
#195 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Objective-C
Stars
9.9k
Forks
2k
PR merge metrics
No merged PRs in 30d

Description

-(CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath {
if (!self.isGetCacheHeight) {
[tableView.fd_indexPathHeightCache invalidateAllHeightCache];
}
CGFloat height = [tableView fd_heightForCellWithIdentifier:NSStringFromClass([Demo class]) cacheByIndexPath:indexPath configuration:^(id cell) {
[self configureCell:cell atIndexPath:indexPath];
}];
return height>kDefaultCellHeight?height:kDefaultCellHeight;
}
invalidateAllHeightCache:或invalidateHeightAtIndexPath:后无效,取到的还是缓存

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.