GDRSImageCacheiOS 图片缓存库
GDRSImageCache 是 iOS 一个非常小型的图片缓存和更改图片大小的开发包。给定一个 URL 后该库会通过后台线程获取图片并在内存中缓存。
使用方法:
UIImageView *anImageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 40, 40)]; // create the cache GDRSImageCache *cache = [[GDRSImageCache alloc] initWithCachedImageFilter:^UIImage *(UIImage *sourceImage) { // resize the image to the image view size and round the image corners; // this is called by the cache on a background thread return [sourceImage gdrs_resizedImageToAspectFitSize:anImageView.bounds.size cornerRadius:10]; }]; // set the default image, which will be returned from // fetchImageWithURL:completionHandler: if an image coresponding to the // requested url is not cached yet. cache.defaultImage = [UIImage imageNamed:<#place holder image name#>]; NSURL *imageUrl = <#an url to a image#>; // fetch an image; the call returns imidiatly and the callback handler // is called when the image is fetched over the network anImageView.image = [cache fetchImageWithURL:imageUrl completionHandler:^(UIImage *image, NSError *error) { anImageView.image = image; }];
评论
KingfisheriOS 图片缓存库
Kingfisher(中文名:翠鸟)是一个纯Swift实现的异步下载和缓存图片的库,可以帮助简单地实现像是用户头像或者tableview里面的图片的下载和缓存,以提高app速度和帮助开发者节省时间。要
KingfisheriOS 图片缓存库
0
Universal ImageLoaderAndroid 图片缓存库
UniversalImageLoader是最早开源的Android图片缓存库,强大的缓存机制。功能特点:支持多线程加载图片(同步或者异步加载)具有很高的定制性每一张图片都有很多备用资源(原始图片、内存
Universal ImageLoaderAndroid 图片缓存库
0
Universal ImageLoaderAndroid 图片缓存库
Universal ImageLoader是最早开源的 Android 图片缓存库, 强大的缓存机制
Universal ImageLoaderAndroid 图片缓存库
0
DotC_ImageManagerIOS 高性能图片缓存库
DotCImageManager是一个高性能的图片缓存库采用游戏开发中的资源管理策略:一份资源只存在一份内存实例,在适当的时候进行自动资源回收支持内存缓存,提供最大内存限制,采用LRU策略进行内存自动
DotC_ImageManagerIOS 高性能图片缓存库
0
DotC_ImageManagerIOS 高性能图片缓存库
DotCImageManager是一个高性能的图片缓存库采用游戏开发中的资源管理策略:一份资源只存在
DotC_ImageManagerIOS 高性能图片缓存库
0