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

python - Operations inside variables -

Generic Map Parameter java -

arrays - What causes a java.lang.ArrayIndexOutOfBoundsException and how do I prevent it? -