Skip to content

Completion Block should contain the url for downloadWithURL #722

Closed
@ilushka85

Description

@ilushka85

The current completion block looks like this:

completed:^(UIImage *image, NSError *error, SDImageCacheType cacheType, BOOL finished)

It really should pass back the original URL. This is neccessary when using the sdwebimagedownloader in a reusable cell. Basically since a cell is reused and completion of image download is async the download of a different image finishes when we are already loading a next one or loaded next image from cache there by replacing the image we should display. If the url were passed here we could check against the original url to see if we should use(display) this image that finished.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions