iOS: fix wrong assignment reuse logic

This commit is contained in:
王劲鹏 2023-06-17 09:44:46 +08:00 committed by osborn
parent 5073dec8ac
commit 8e4bcd0519

View File

@ -290,7 +290,9 @@ - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(N
if (self.loadMore
&& position >= MAX(0, (NSInteger) self.rowCount - 1 - (NSInteger) self.preloadItemCount)
&& self.onLoadMoreFuncId) {
if (reuseId == nil) {
reuseId = @"doricLoadMoreCell";
}
[self callLoadMore];
}
DoricTableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:reuseId ?: @"doricCell"];