sdwebimage
Show activity indicator in SDWebImage
This fork has support for this functionality. Take a look at the diff. But, in general, you can do it rather easily without using that fork: __block UIActivityIndicatorView *activityIndicator = [[UIActivityIndicatorView alloc] initWithActivityIndicatorStyle:activityStyle]; activityIndicator.center = imageView.center; activityIndicator.hidesWhenStopped = YES; [imageView setImageWithURL:[NSURL URLWithString:@”http://www.domain.com/path/to/image.jpg”] placeholderImage:[UIImage imageNamed:@”placeholder.png”] success:^(UIImage *image) { [activityIndicator removeFromSuperview]; } failure:^(NSError *error) { [activityIndicator removeFromSuperview]; … Read more
SDWebImage clearing cache
SDImageCache *imageCache = [SDImageCache sharedImageCache]; [imageCache clearMemory]; [imageCache clearDisk]; Don’t forget to put these lines of code in your didReceiveMemoryWarning, too.
What happens to SDWebImage Cached Images in my app when the image file on the server changes?
I had a look at the source code. It processes the setImageWithURL method like this: Ask the memory cache if the image is there, if yes return the image and don’t go any further Ask the disk cache if the image is there, if yes return the image and don’t go any further Try to … Read more