SDWebImage

1、添加头文件

打开终端,cd  工程文件所在的文件夹

vim podfile    (i 进入编辑 )

platform :ios, '7.0'

target "工程文件名" do

pod 'SDWebImage', '~>3.8'

end   (Esc退出编辑,:wq 退出编辑器)

pod install

2 使用

SDWebImageManager*manager = [SDWebImageManager sharedManager];

[manager  downloadImageWithURL:(NSURL*)url 

                                             options:(SDWebImageOptions)options

                             progress:(SDWebImageDownloaderProgressBlock)progressBlock{

}                completed:(SDWebImageCompletionWithFinishedBlock)completedBlock {

}];

你可能感兴趣的:(SDWebImage)