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

ASNetworkImageNode ! help,help,help! #901

Closed
aimm opened this issue May 2, 2018 · 4 comments
Closed

ASNetworkImageNode ! help,help,help! #901

aimm opened this issue May 2, 2018 · 4 comments

Comments

@aimm
Copy link

aimm commented May 2, 2018

The avatarNode is in a table cell Node, it can display correctly at the first time the table loaded,then the images all disappeared after I scroll the cell node out of the screen ,even the placeholderimage/placeholdercolor did disappear. Here is the code:
_avatarNode = [[ASNetworkImageNode alloc] init];
_avatarNode.defaultImage = [UIImage as_imageNamed:@"placeholder"];
_avatarNode.style.preferredSize = CGSizeMake(AdaptedDimension(54), AdaptedDimension(54));
_avatarNode.URL = [NSURL URLWithString:@"https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=4064501590,587370452&fm=27&gp=0.jpg"];
Can anybody help me ???

@aimm
Copy link
Author

aimm commented May 2, 2018

and when I changed the image url to http://img0.imgtn.bdimg.com/it/u=1626113549,1123550683&fm=200&gp=0.jpg,it works well! So that's going on?

@haashem
Copy link

haashem commented May 13, 2018

I have the same issue, when I disable caching and I scroll up to view downloaded images, I see they have been disappeared. it seem when cells, enter preload state, NetworkImageNode fires download image request because cache has set to nil. I'm wondering why it doesn't use user memory cache by default?

@dklinzh
Copy link

dklinzh commented May 21, 2018

You can figure it out at #925

@Adlai-Holler
Copy link
Member

Sorry folks for this issue. The fix is landed into master!

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

4 participants