我有一个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];