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

选择完照片后如果上传图片到后台并且再立马使用SDWebimage下载对应的网络图片,有的时候会导致图片请求被取消 #366

Closed
baxiaxx opened this issue Apr 18, 2019 · 0 comments

Comments

@baxiaxx
Copy link

baxiaxx commented Apr 18, 2019

原因在于如下代码:
@implementation ZLImageNavigationController

  • (void)dealloc
    {
    [[SDWebImageManager sharedManager] cancelAll];
    // NSLog(@"---- %s", FUNCTION);
    }

这个地方如果取消所有的请求,会导致外面的SDWebImage所有的任务都被取消,这个地方设计是否应该考虑只取消模块内部的图片请求,而不是全局都做取消操作。

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

1 participant