iOS: fix wrong assignment reuse logic
This commit is contained in:
parent
5073dec8ac
commit
8e4bcd0519
@ -290,7 +290,9 @@ - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(N
|
|||||||
if (self.loadMore
|
if (self.loadMore
|
||||||
&& position >= MAX(0, (NSInteger) self.rowCount - 1 - (NSInteger) self.preloadItemCount)
|
&& position >= MAX(0, (NSInteger) self.rowCount - 1 - (NSInteger) self.preloadItemCount)
|
||||||
&& self.onLoadMoreFuncId) {
|
&& self.onLoadMoreFuncId) {
|
||||||
reuseId = @"doricLoadMoreCell";
|
if (reuseId == nil) {
|
||||||
|
reuseId = @"doricLoadMoreCell";
|
||||||
|
}
|
||||||
[self callLoadMore];
|
[self callLoadMore];
|
||||||
}
|
}
|
||||||
DoricTableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:reuseId ?: @"doricCell"];
|
DoricTableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:reuseId ?: @"doricCell"];
|
||||||
|
Reference in New Issue
Block a user