文件名称:SQWebImage:仿SDWebImage(探究原理)
文件大小:372KB
文件格式:ZIP
更新时间:2024-06-15 02:44:49
Objective-C
SQWebImage 仿SDWebImage(探究原理) ###一、代码结构分析图 ###二、首先自定义NSOperation操作,我的下载操作是在main方法中进行处理的,而SDWebImage是在start方法中进行处理,自定义回调block块 @interface WebImageOperation () @property (copy, nonatomic) NSString *url; @property (copy, nonatomic) void(^finishedBlock)(UIImage *img); @end @implementation WebImageOperation + (instancetype)webImageOperationWithURL:(NSString *)url finishedBlock:(void(^)(UIImage *img)) fi
【文件预览】:
SQWebImage-master
----603-SQWebImage()
--------WebImageOperation.h(324B)
--------603-SQWebImage()
--------WebImageOperation.m(1KB)
--------.DS_Store(6KB)
--------603-SQWebImageTests()
--------603-SQWebImage.xcodeproj()
----picture()
--------frame.png(149KB)
----LICENSE(11KB)
----.DS_Store(8KB)
----.gitignore(494B)
----README.md(6KB)