From 1f01b7bffe7bf9feac9dd4abf562d9e9fbc67f0a Mon Sep 17 00:00:00 2001 From: "pengfei.zhou" Date: Thu, 4 Nov 2021 18:51:22 +0800 Subject: [PATCH] iOS:when use YYImage,startAnimation donot work --- doric-iOS/Pod/Classes/Shader/DoricImageNode.m | 3 +++ 1 file changed, 3 insertions(+) diff --git a/doric-iOS/Pod/Classes/Shader/DoricImageNode.m b/doric-iOS/Pod/Classes/Shader/DoricImageNode.m index cd21064f..bd778ec6 100644 --- a/doric-iOS/Pod/Classes/Shader/DoricImageNode.m +++ b/doric-iOS/Pod/Classes/Shader/DoricImageNode.m @@ -619,6 +619,9 @@ - (NSNumber *)isAnimating { } - (void)startAnimating { +#if DORIC_USE_YYWEBIMAGE + [(DoricImageView *)self.view setCurrentAnimatedImageIndex:0]; +#endif [self.view startAnimating]; }