Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

some gifs abnormal #230

Open
wangyongy opened this issue Oct 9, 2019 · 2 comments
Open

some gifs abnormal #230

wangyongy opened this issue Oct 9, 2019 · 2 comments

Comments

@wangyongy
Copy link

eg:https://resource.iiisland.com/user/image/1E01D9492FB3AFCC6C0617C3198F12C5-5d89ce152ed84331c6a4facc.gif
load this gif,then push to other controller
finally pop,you will find,the gif no display

@wolangerxing
Copy link

same as you

@wolangerxing
Copy link

wolangerxing commented Sep 29, 2020

hey, I have found a solution to fix this.
In - (void)displayDidRefresh:(CADisplayLink *)displayLink func,
insert one line code at position show blow, which is self.image = self.currentFrame;
if (self.loopCountdown == 0) { [self stopAnimating]; self.image = self.currentFrame; return; }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants