美文网首页
SDWebImage如何设置header

SDWebImage如何设置header

作者: 44b6889cedeb | 来源:发表于2023-05-11 17:46 被阅读0次

    SDWebImageDownloader *downloader = [SDWebImageDownloader sharedDownloader]; [downloadersetValue:@"xxxxx" forHTTPHeaderField:@"xxxxx"];        

    WeakSelf(weakSelf);

    [downloaderdownloadImageWithURL:[NSURLURLWithString:dic[EV07B_KEY34_PHOTO_URL]]options:0progress:nilcompleted:^(UIImage*_Nullableimage,NSData*_Nullabledata,NSError*_Nullableerror,BOOLfinished) {                            If(image && finished){

                    weakSelf.iconView.image= image;

                }

            }];

    相关文章

      网友评论

          本文标题:SDWebImage如何设置header

          本文链接:https://www.haomeiwen.com/subject/kwissdtx.html