diff --git a/doric-iOS/Pod/Classes/Shader/DoricListNode.m b/doric-iOS/Pod/Classes/Shader/DoricListNode.m index a7dc0b5d..c11a72f2 100644 --- a/doric-iOS/Pod/Classes/Shader/DoricListNode.m +++ b/doric-iOS/Pod/Classes/Shader/DoricListNode.m @@ -226,10 +226,13 @@ - (void)callItem:(NSUInteger)position height:(CGFloat)height { return; } self.itemHeights[@(position)] = @(height); - NSIndexPath *indexPath = [NSIndexPath indexPathForRow:position inSection:0]; if (@available(iOS 10.0, *)) { dispatch_async(dispatch_get_main_queue(), ^{ [UIView performWithoutAnimation:^{ + if([self.view numberOfRowsInSection:0]<=position){ + return; + } + NSIndexPath *indexPath = [NSIndexPath indexPathForRow:position inSection:0]; [self.view reloadRowsAtIndexPaths:@[indexPath] withRowAnimation:UITableViewRowAnimationNone]; }]; });