forkingdog / forkingdog/UITableView-FDTemplateLayoutCell
invalidateAllHeightCache:和invalidateHeightAtIndexPath:无效
- 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.