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
onNULL
ifCGImageSourceRef
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
andsd_backgroundImageURLForState:
forUIButton
#2002 - Set
UIButton
placeholer-image even if the url isnil
#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 animatedWebP
decoding #1985 fixes #1999 #1885 - Use
FOUNDATION_EXPORT
overextern
#1977 - Move common test logic to
SDTestCase
#1980 - Enabled
CLANG_WARN_STRICT_PROTOTYPES
#1995 #2027 fixes #2022 - Update
macOS Demo
deployment target to10.10
to support build onXcode 9
#2035
文档
下载地址: