SDWebImage 的简单使用方法

第一步,下载SDWebImage,导入工程

第二步,在需要的地方导入头文件:#import   "UIImageView+WebCache.h"

第三步,调用sd_setImageWithURL:方法,设置并缓存图片

1. sd_setImageWithURL:   

  [self.image1   sd_setImageWithURL:imagePath1];

posted @ 2017-01-20 12:45  行者烧炉子  阅读(174)  评论(0编辑  收藏  举报