iOS fix listnode

This commit is contained in:
pengfei.zhou 2020-08-04 19:17:30 +08:00 committed by osborn
parent 663c3d5b92
commit 408868e8d5

View File

@ -231,7 +231,7 @@ - (void)callItem:(NSUInteger)position height:(CGFloat)height {
dispatch_async(dispatch_get_main_queue(), ^{
[UIView performWithoutAnimation:^{
NSUInteger itemCount = self.itemCount + (self.loadMore ? 1 : 0);
if ([self.view numberOfRowsInSection:0] <= position || currentCount != itemCount) {
if (itemCount <= position || currentCount != itemCount) {
[self.view reloadData];
return;
}