SDWebImage 在加载同一个地址时不能及时更换新图片的问题
2018-08-29 本文已影响14人
没错就是豪哥灬
[self.transparentImageView sd_setImageWithURL:[NSURL URLWithString:@"http://www.tongyingtianxia.com:10011/ServiceStation/2018/8/28/TM.jpg"] placeholderImage:[UIImage imageNamed:@"headportrait"] options:SDWebImageRefreshCached];
需要加上options:SDWebImageRefreshCached 用来刷新缓存 .