Sdwebimage: Activity indicator provided sometimes appear after a delay or after cellForRowAtIndexPath is called again.

Created on 19 Jan 2017  路  4Comments  路  Source: SDWebImage/SDWebImage

New Issue Checklist

Issue Info

Info | Value |
-------------------------|-------------------------------------|
Platform Name | e.g. ios / tvos
Platform Version | e.g. 8.0
SDWebImage Version | e.g. 3.7.6
Integration Method | e.g. carthage / cocoapods / manually
Xcode Version | e.g. Xcode 7.3
Repro rate | e.g. all the time (100%) / sometimes x% / only once
Repro with our demo prj | e.g. does it happen with our demo project?
Demo project link | e.g. link to a demo project that highlights the issue

Issue Description and Steps

Please fill in the detailed description of the issue (full output of any stack trace, compiler error, ...) and the steps to reproduce the issue.

Most helpful comment

for anyone facing similar issue -

The mistake i was doing was setting the showActivityIndicator after the webservice call.

Kindly follow this while adding activity indicator

cell.imageView.setShowActivityIndicator(true)
cell.imageView.setIndicatorStyle(.gray)
cell.imageView?.sd_setImage(with: url)

All 4 comments

can you replicate this in the demo project? does this happen in the latest version of the library?

Yes i m using the latest version of SDWebImage.
Sorry can't make a demo at the moment.
My scenario is that i m loading feeds in tableview.
A cell has a collectionview and has 4 images in horizontal scroll.

@ankit-betterbutter the question was if this scenario happens WITH OUR DEMO, not to create a demo.

for anyone facing similar issue -

The mistake i was doing was setting the showActivityIndicator after the webservice call.

Kindly follow this while adding activity indicator

cell.imageView.setShowActivityIndicator(true)
cell.imageView.setIndicatorStyle(.gray)
cell.imageView?.sd_setImage(with: url)
Was this page helpful?
0 / 5 - 0 ratings