Latest 1.1.0
Homepage https://github.com/baishiyun/BSYDownloadPicture
License MIT
Platforms ios 7.0, requires ARC
Frameworks UIKit, Foundation
Authors

图片下载工具,已经做了缓存处理,后面会有具体的完善,还希望大家多多支持,多多Star

使用方法:pod search BSYDownloadPicture 然后在你的podfile文件中添加   pod ‘BSYDownloadPicture’, ‘~> 1.1.0’后
执行pod install。

使用场景:UITableView /UICollectionView加载大量图片,这个时候,需要对网络下载做优化,已经下载的图片不在下载,为缓存的图片进行缓存!再也不用SDWebImage那么大一个库啦😄😄😄😄😄😄😄😄! BSYDownloadPicture体积小,使用非常简单,就是一个方法回掉,其他一概不管就可以了。希望对大家有用。谢谢!

1、下载图片具体的使用它:
[[BSYDownloadPicture shareDownloadPicture] bsy_DownloadPictureWithUrl:mode.url succeedCallBack:^(UIImage *image) {
//成功回掉
self.icon.image = image;
} failCallBack:^{

             //失败处理
        }];

2.删除所有图片缓存
/*
删除所有缓存的图片
@param succeedCallBack 删除成功
@param failCallBack 删除失败
/
-(void)bsy_removeDownloadPictureSucceedCallBack:(void(^)(BOOL removeBool))succeedCallBack failCallBack:(void(^)(BOOL removeBool))failCallBack
{

}

Latest podspec

{
    "name": "BSYDownloadPicture",
    "version": "1.1.0",
    "license": "MIT",
    "summary": "u56feu7247u4e0bu8f7du5de5u5177uff0cu4f18u5316u7f13u5b58u5904u7406uff0cu540eu9762u4f1au6709u5177u4f53u7684u5b8cu5584uff0cu8fd8u5e0cu671bu5927u5bb6u591au591au652fu6301,u591au591aStaruff0cu8c22u8c22",
    "homepage": "https://github.com/baishiyun/BSYDownloadPicture",
    "source": {
        "git": "https://github.com/baishiyun/BSYDownloadPicture.git",
        "tag": "1.1.0"
    },
    "source_files": "BSYDownloadPicture/*.{h,m}",
    "requires_arc": true,
    "platforms": {
        "ios": "7.0"
    },
    "frameworks": [
        "UIKit",
        "Foundation"
    ],
    "authors": {
        "u767du4ed5u4e91": "[email protected]"
    },
    "social_media_url": "https://github.com/baishiyun"
}

Pin It on Pinterest

Share This