SDWebImage 在加载同一个地址时不能及时更换新图片的问题

[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 用来刷新缓存 .

你可能感兴趣的:(SDWebImage 在加载同一个地址时不能及时更换新图片的问题)