注册

ios 头像缓存 怎么清除 我换掉了头像 URL 一样的时候 头像没更新

已邀请:
一般缓存是根据url做的,头像都换了,对应的链接也应该变化的,非要一致的url。那么久不能缓存了。
用SDWebimage  加载图片
[ImageView sd_setImageWithURL:[NSURL URLWithString:item.head_image] placeholderImage:[UIImage imageNamed:@"chatListCellHead"] options:SDWebImageRefreshCached ];
options:传SDWebImageRefreshCached 刷新缓存

要回复问题请先登录注册