From 408868e8d5818929a07bc3f61555f3197d7c1f24 Mon Sep 17 00:00:00 2001 From: "pengfei.zhou" Date: Tue, 4 Aug 2020 19:17:30 +0800 Subject: [PATCH] iOS fix listnode --- doric-iOS/Pod/Classes/Shader/DoricListNode.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doric-iOS/Pod/Classes/Shader/DoricListNode.m b/doric-iOS/Pod/Classes/Shader/DoricListNode.m index 3bd863d5..8e5bbf33 100644 --- a/doric-iOS/Pod/Classes/Shader/DoricListNode.m +++ b/doric-iOS/Pod/Classes/Shader/DoricListNode.m @@ -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; }