为了避免浪费流量,以及提高显示图片效率,使用SDWebImage经常需要使用它的缓存图片
UIImage *pickImage = [[SDImageCache sharedImageCache] imageFromDiskCacheForKey:urlStr];
if (pickImage) {
_picImageView.image = pickImage;
}else{
[_picImageViewsetImageWithURL:[NSURLURLWithString:urlStr] usingActivityIndicatorStyle:UIActivityIndicatorViewStyleGray];