发布于 2017-10-08 22:47:24 | 89 次阅读 | 评论: 0 | 来源: 网友投递
SDWebImage 简化网络图片处理
用SDWebImage调用网站上的图片,跟本地调用内置在应用包里的图片一样简单。操作也很简单。
SDWebImage 4.1.1 已发布,SDWebImage 是非常流行的 iOS 图片加载框架,提供了一个 UIImageView 的 category 用来加载网络图片并且对网络图片的缓存进行管理,采用异步方式来下载网络图片。更新内容如下:
修复
Fixed crash on [SDWebImageDownloaderOperation reset]_block_invoke
2f892f9 fixes #1883
Fixed SDWebImageDownloadOperation
imageData
multi-thread issue #2011 fixes #1998[SDWebImageDownloaderOperation URLSession:dataTask:didReceiveData:]
crash
Fixed CFRelease
on NULL
if CGImageSourceRef
create failed #1978 fixes #1968 #1834 #1947
Fixed request cache policy #1994 #2032 fixes #1993 #1861 #1623 was introduced by #1737(unit test #2031)
Fixed CGBitmapContextCreate
bitmap memory leak #1976 replaces #1860 fixes #1974
Fixed issue #2001, add sd_currentBackgroundImageURL
and sd_backgroundImageURLForState:
for UIButton
#2002
Set UIButton
placeholer-image even if the url is nil
#2043 fixes #1721 #1964 replaces #1790
Use CGImageSourceCreateIncremental
to perform progressive decoding instead of decode partial data each time from the beginning to improve performance and remove that gray background #2040 fixes #1899
Fix SDWebImage v4 can not import libwebp framework's header files #1983 fixes #1887
Fix unreachable code build warning on macOS
#1984
Performance enhancement related to single WebP
and animated WebP
decoding #1985 fixes #1999 #1885
Use FOUNDATION_EXPORT
over extern
#1977
Move common test logic to SDTestCase
#1980
Enabled CLANG_WARN_STRICT_PROTOTYPES
#1995 #2027 fixes #2022
Update macOS Demo
deployment target to 10.10
to support build on Xcode 9
#2035
下载地址: