Skip to content

How about if the cell contains an image downloaded in the background ? #1

@jeromeDms

Description

@jeromeDms

Hi
Thanks for your great work !

I'm facing an issue with your code, I'm using auto layout and my cell contains an image which is downloaded in the background.
When the first call to cellForIndexPath is done, the image starts downloading, but its frame is not correct until the download has completed.
In the above situation, the returned height is wrong since it does not take into account the image height.
Any idea how to solve this ?
I'm using sd_setImageWithURL() to lazy load the image, I tried to call [cell setNeedsLayout] in the image completed callback but the cache is already filled with the wrong height.

Again, thanks !
Jerome

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions