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

关于你的SDWebImageManager #25

Open
Xmanzn opened this issue May 20, 2016 · 1 comment
Open

关于你的SDWebImageManager #25

Xmanzn opened this issue May 20, 2016 · 1 comment

Comments

@Xmanzn
Copy link

Xmanzn commented May 20, 2016

@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]; 有必要么

@dsxNiubility
Copy link
Owner

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

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

2 participants