如果你的iOS项目中需要加载项目中或者沙盒中的多张高清大图时,希望这个框架能助你一臂之力。
If your iOS project needs to be loaded multi high quality images in the project or sandbox, hope this framework can help you.
类似于SDWebImage ,异步加载。两种缓存机制:内存和硬盘。
Similar to the SDWebImage, asynchronous loading. Two types of caching mechanism: memory and hard disk.
git地址:https://github.com/pzhtpf/AsyncLoadLocalImage
两种用法(two usages)
- UIImageView(category)
#import <AsyncLoadLocalImage/TPF_ImageViewLoadLocalImage.h>
[cell.imageView loadLocalImageWithUrl:path callback:^(UIImage *image, NSString *url, BOOL finished){
// do something
}];
- 异步加载图片(Asynchronous loading images)
#import <AsyncLoadLocalImage/TPF_loadLocalImage.h>
[[TPF_LoadLocalImage sharedImageCache] loadLocalImageWithUrl:path callback:^(UIImage *image, NSString *url, BOOL finished){
// do something
}];