簡體   English   中英

使用SDWebImage在服務器上更改圖像時如何更新圖像

[英]How to update image when image changed on server with SDWebImage

我有圖像的靜態URL,但是當我編輯該圖像並返回主屏幕時,圖像未更改,它仍然從緩存中獲取舊圖像。

有什么方法可以更新緩存中的圖像嗎?

SDWebImage文檔上 ,這些家伙給出了執行所需內容的代碼:

[imageView sd_setImageWithURL:[NSURL URLWithString:@"https://graph.facebook.com/olivier.poitrey/picture"]
             placeholderImage:[UIImage imageNamed:@"avatar-placeholder.png"]
                      options:SDWebImageRefreshCached];

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM