YYWebImage
YYWebImage copied to clipboard
目前有没有基于YYWebImag做的photo browser呢
如果用其他的图片浏览库,可能其会用到SDImage这类的库,就不能与yyWebImage共享缓存了,可能导致重复加载图片的可能?
能举几个常用的图片浏览库例子吗?我看一下大概的形态。
https://github.com/mwaterfall/MWPhotoBrowser 这个貌似比较火 https://github.com/NYTimes/NYTPhotoViewer https://github.com/jaredsinclair/JTSImageViewController
我写了个简单的图片浏览控件,只用在 Demo 中做演示, 简单的需求时可以用,但基本没有什么定制选项: https://github.com/ibireme/YYKit/blob/master/Demo%2FYYKitDemo%2FYYPhotoGroupView.h
更完整功能的,可能要以后有时间在做吧,或者 fork 一下 MWPhotoBrowser 来简单修改看看。
感谢、
@mymickey 用MWPhotoBrowser的话,对MWPhoto类swizzle _performLoadUnderlyingImageAndNotifyWithWebURL:
和cancelAnyLoading
就可以把SDWebImage换成YYWebImage了
@mymickey 自己写过一个可定制 image loader 的 photo browser : https://github.com/tonycn/OWPhotoBrowser,也是在项目中使用的,有兴趣可以试试
没想到这个issue还开着。。。 https://github.com/xilin/MWPhotoBrowser_YYWebImage 这是我前面提到的hook的一个实现。
@mymickey https://github.com/EnjoySR/ESPictureBrowser
@mymickey https://github.com/skx926/KSPhotoBrowser 看到这个挺不错的喔