我有一個FXImageView
。我通過傳遞圖像的URL加載圖像,但問題是,如果服務器上的圖像更改它並不反映圖像視圖中的圖像更改。它仍然顯示舊圖像。我認爲這可能是在URL上緩存圖像,並顯示沒有獲得更新的圖像。FXImageView:在URL更改的圖像不更新imageView
我應該做什麼從服務器獲取更新的圖像?
我下面的代碼:
self.userPhotoImageView.asynchronous = YES;
self.userPhotoImageView.contentMode = UIViewContentModeScaleAspectFit;
NSString *imagePath = //constant image url path to server
NSURL *imageURL = [NSURL URLWithString:imagePath];
[self.userPhotoImageView setImageWithContentsOfURL:imageURL];