swift - How to stop animating GIF in SDWebImage? -


i'm using sdwebimage fetch images web , display them. gifs, how stop gif?

assuming using >= v4.0; docs:

starting 4.0 version, rely on flanimatedimage take care of our animated images.

from flanimatedimage's docs; there 2 ways control playback:

// flanimatedimageview can take flanimatedimage , plays automatically when in view hierarchy , stops when removed.

// animation can controlled uiimageview methods -start/stop/isanimating.


Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -