Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cancel image if block #11

Open
matrosovDev opened this issue Aug 6, 2015 · 1 comment
Open

cancel image if block #11

matrosovDev opened this issue Aug 6, 2015 · 1 comment

Comments

@matrosovDev
Copy link

Hi seems nice example. For which purposes we use this if block below?

if (cell.indexPath != nil && cell.indexPath.section != indexPath.section) { [cell cancelImageLoading]; }

@jessearmand
Copy link
Contributor

That is used to reset the loading process of an image when a cell is being reused for another section. Each cell should load the particular image for each indexPath.section, but each cell may have the same properties as other sections, when it was reused. 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants