SXNews icon indicating copy to clipboard operation
SXNews copied to clipboard

关于你的SDWebImageManager

Open Xmanzn opened this issue 8 years ago • 1 comments

@implementation SDWebImageManager

  • (id)sharedManager { static dispatch_once_t once; static id instance; dispatch_once(&once, ^{ instance = [self new]; }); return instance;

    @dsxNiubility @ NSURLCache *cache = [NSURLCache sharedURLCache];

} 你在这里自己加的NSURLCache *cache = [NSURLCache sharedURLCache]; 有必要么

Xmanzn avatar May 20 '16 07:05 Xmanzn

恩,可以直接去SDImageCache里取的。当时对原生的api比较熟,顺手就那么写了。

dsxNiubility avatar May 20 '16 10:05 dsxNiubility