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

sql - Time in datatime field -

javascript - How to split the success output from an Ajax post? -

java - sharing object across different classes -