Skip to content

Commit 7df9d98

Browse files
committed
修复了 数据源清理数据时候 清理之前的缓存
1 parent d7074f7 commit 7df9d98

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ZHTableViewGroupExample/ZHTableViewGroupObjc/ZHTableViewDataSource.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,7 @@ + (UITableViewHeaderFooterView *)viewForFooterInSectionWithDataSource:(ZHTableVi
241241

242242
- (void)clearData {
243243
[self.groups removeAllObjects];
244+
[_cellCache removeAllObjects];
244245
}
245246

246247
+ (UITableViewHeaderFooterView *)viewHeaderFooterInSectionWithDtaSource:(ZHTableViewDataSource *)dataSource

0 commit comments

Comments
 (0)