diff --git a/doric-iOS/Pod/Classes/Shader/DoricListNode.m b/doric-iOS/Pod/Classes/Shader/DoricListNode.m index 668fad3a..98d4bd41 100644 --- a/doric-iOS/Pod/Classes/Shader/DoricListNode.m +++ b/doric-iOS/Pod/Classes/Shader/DoricListNode.m @@ -222,9 +222,15 @@ - (void)callItem:(NSUInteger)position height:(CGFloat)height { } self.itemHeights[@(position)] = @(height); NSIndexPath *indexPath = [NSIndexPath indexPathForRow:position inSection:0]; - [UIView performWithoutAnimation:^{ - [self.view reloadRowsAtIndexPaths:@[indexPath] withRowAnimation:UITableViewRowAnimationNone]; - }]; + if (@available(iOS 10.0, *)) { + [UIView performWithoutAnimation:^{ + [self.view reloadRowsAtIndexPaths:@[indexPath] withRowAnimation:UITableViewRowAnimationNone]; + }]; + } else { + dispatch_async(dispatch_get_main_queue(), ^{ + [self.view reloadData]; + }); + } } - (DoricViewNode *)subNodeWithViewId:(NSString *)viewId {