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

sd 能改成YYAnimatedImageView? #76

Closed
986138497 opened this issue Apr 25, 2020 · 7 comments
Closed

sd 能改成YYAnimatedImageView? #76

986138497 opened this issue Apr 25, 2020 · 7 comments

Comments

@986138497
Copy link

YYAnimatedImageView 可以支持 web 和普通图片和 gif ,这样省得导入太多

@QuintGao
Copy link
Owner

最新版已支持YYWebImage,可以使用pod 'GKPhotoBrowser/YY'

@986138497
Copy link
Author

好的,yywebimage 已经有人把 NSURLConnectionDelegate 改成NSURLSession,在 wiki 里面

@986138497
Copy link
Author

谢谢

@986138497
Copy link
Author

ibireme/YYKit#489

@QuintGao
Copy link
Owner

嗯 如果要使用修改后的 只能自己导入了

@986138497
Copy link
Author

  • (UIImage *)imageFromMemoryForURL:(NSURL *)url {
    YYWebImageManager *manager = [YYWebImageManager sharedManager];
    NSString *key = [manager cacheKeyForURL:url];
    return [manager.cache getImageForKey:key withType:YYImageCacheTypeMemory];
    }
    把 type 改成YYImageCacheTypeAll 是不是更好点

@QuintGao
Copy link
Owner

已优化

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