Open Tbwas opened 7 years ago
在gif图显示过程中,手动调用 stopAnimating方法,当再次显示该gif图时,会在定时器的step的方法中crash掉,望看下,3Q - (void)stopAnimating { [super stopAnimating]; [_requestQueue cancelAllOperations]; _link.paused = YES; self.currentIsPlayingAnimation = NO; }
- (void)stopAnimating { [super stopAnimating]; [_requestQueue cancelAllOperations]; _link.paused = YES; self.currentIsPlayingAnimation = NO; }
请问 你说的再次显示该gif时,是什么流程?是又创建了一个gif对象吗?
在gif图显示过程中,手动调用 stopAnimating方法,当再次显示该gif图时,会在定时器的step的方法中crash掉,望看下,3Q
- (void)stopAnimating { [super stopAnimating]; [_requestQueue cancelAllOperations]; _link.paused = YES; self.currentIsPlayingAnimation = NO; }