From c82fdf1a0d5cf0356e8f242f0755f7b2d8b83183 Mon Sep 17 00:00:00 2001 From: "pengfei.zhou" Date: Thu, 22 Apr 2021 15:41:09 +0800 Subject: [PATCH] iOS: fix iOS 11 & iOS 12 DoricListNode crash --- 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 fab05110..4669322c 100644 --- a/doric-iOS/Pod/Classes/Shader/DoricListNode.m +++ b/doric-iOS/Pod/Classes/Shader/DoricListNode.m @@ -252,7 +252,7 @@ - (void)callItem:(NSUInteger)position height:(CGFloat)height { } NSUInteger currentCount = self.itemCount + (self.loadMore ? 1 : 0); self.itemHeights[@(position)] = @(height); - if (@available(iOS 10.0, *)) { + if (@available(iOS 12.0, *)) { dispatch_async(dispatch_get_main_queue(), ^{ if (self.view.doricLayout.heightSpec == DoricLayoutFit) { DoricSuperNode *node = self.superNode;