错误信息:
Task <63FFF67D-F6BA-4B01-8B58-A0838F752344>.<1> load failed with error Error Domain=NSURLErrorDomain Code=-999 "cancelled" UserInfo={NSErrorFailingURLStringKey=https://hjkf.huijintech.com.cn/channel/app/files/file_download_thumbnail/dd808c8e140619370503b1d53557e9d9fa368f5fe4fc2c26fa8645e1642f996c?thumbType=0, NSErrorFailingURLKey=https://hjkf.huijintech.com.cn/channel/app/files/file_download_thumbnail/dd808c8e140619370503b1d53557e9d9fa368f5fe4fc2c26fa8645e1642f996c?thumbType=0, _NSURLErrorRelatedURLSessionTaskErrorKey=(
"LocalDataTask <63FFF67D-F6BA-4B01-8B58-A0838F752344>.<1>"
), _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <63FFF67D-F6BA-4B01-8B58-A0838F752344>.<1>, NSLocalizedDescription=cancelled} [-999]
解决方法:
在加载图片前设置
[[SDWebImageDownloader sharedDownloader] setValue:@"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8" forHTTPHeaderField:@"Accept"];
参考:https://blog.csdn.net/peterxiaocao/article/details/46518341