Questions tagged [sdwebimage]

SDWebImage is a simple image library for iOS which provides caching and an easy way to load remote images asynchronously into UIImageViews.

This library provides a category for UIImageVIew with support for remote images coming from the web.

It provides:

  • An UIImageView category adding web image and cache management to the Cocoa Touch framework
  • An asynchronous image downloader
  • An asynchronous memory + disk image caching with automatic cache expiration handling
  • A guarantee that the same URL won't be downloaded several times
  • A guarantee that bogus URLs won't be retried again and again
  • Performance

More info can be found on the github page.

885 questions
5
votes
2 answers

SDWebImage not updating image in cache

I am using SDWebImage library for handling image cache. I implemented one of its method to download image from server and populating data in tableView. Here is my code for downloading image and showing in tableViewCell In cellForRowAtIndexPath, I…
Sushil Sharma
  • 2,321
  • 3
  • 29
  • 49
5
votes
1 answer

Swift - SDWebImage / Duplicate definition of category "WebCache"

When I have imported the SDWebImage framework into my project. I get 2 warning messages. They all say 'Duplicate definition of category "WebCache" on interface "UIImageView" ' Besides, there is one also shown 'In module "WebImage" import from…
Eayon Dong
  • 51
  • 3
5
votes
2 answers

App crash while downloading large images using SDWebImage?

I'm using SDWebImage to download image async from server.Some images on server are of size ~1.5 to 2. MB.I'm showing these images on UICollectionView. I'm getting memory warning and app crashes after several run.Some times it happens when images…
Bharat
  • 2,987
  • 2
  • 32
  • 48
5
votes
1 answer

Issue Using SDWebImage in Swift

I'm trying to use SDWebImage in swift, the file id like to use is called UIImageView+WebCache.h i added it to my bridging header using #import "UIImageView+WebCache.h" Now i am trying to load that file in swift using: var webCah =…
inVINCEable
  • 2,167
  • 3
  • 25
  • 49
5
votes
1 answer

Image View in Auto Layout using SDWebImage in Storyboards

I'm having no luck getting an image and its UIImageView to show up the correct size in my custom UITableViewCell. The image is correct, but its place in the UITableViewCell is not, and isn't even close. I don't have enough reputation points to post…
SRMR
  • 3,064
  • 6
  • 31
  • 59
5
votes
4 answers

GMSMarker icon download via URL

Setting an icon to GMSMarker in Google Maps SDK requires the UIImage, but currently my requirements are downloading it from a specific URL Issue The problem is that somehow only the last item sometimes is being shown. This the code on how I create…
E-Riddie
  • 14,660
  • 7
  • 52
  • 74
5
votes
3 answers

Handling download of very large images with SDWebImage

I use SDWebImage to download images asynchronously to my UIImageViews. Most images that received are of acceptable sizes, and can be easily downloaded, and set to the UIImageViews. However there are times, when the source image at the URL is of…
n00bProgrammer
  • 4,261
  • 3
  • 32
  • 60
5
votes
1 answer

Why does SDImageCache perform dispatch_sync in init?

-[SDImageCache initWithNamespace] performs dispatch_sync to allocate NSFileManager. What is the rationale or benefit of doing dispatch_async for a one-liner here? See full code here at line 78. // Init the disk cache NSArray *paths…
Boon
  • 40,656
  • 60
  • 209
  • 315
5
votes
2 answers

SDWebImage in iOS 7.1 crashes

So, i've just updated my xcode and started building my app for iOS 7.1. But now i find out that my SDWebImage is broken. Whenever i try to set an ImageWithUrl for a UIImageView my app crashes with the following exception and stacktrace: 2014-03-11…
Daan Olislagers
  • 3,253
  • 2
  • 17
  • 35
5
votes
4 answers

How to use success & failure block in SDwebimage

I have latest version of SDWebimage but it doesnt have Success & failure I tried the following method but SDwebimage doesnt have method [self.imageView setImageWithURL:[NSURL URLWithString:self.imageURL] placeholderImage:[UIImage…
DAMM108
  • 970
  • 2
  • 13
  • 27
5
votes
6 answers

UICollectionView + SDWebImage + Cell reuse

I have a UICollectionView with a custom UICollectionViewCell class which adds another UIView (thumbnailView) to its contentView. This other view has a UIImageView property (imageView) whose image gets loaded with SDWebImage asynchronously. This all…
Tobi Kremer
  • 618
  • 6
  • 22
5
votes
1 answer

Why SDWebImage do not show image in a cell after load?

I am using SDWebImage. In my table, each row has image and a label. As you can see, image cannot be seen. But when I go back to parent view controller, and come here again, they are shown. The code I am using is: [cell.imageView…
Burak
  • 5,706
  • 20
  • 70
  • 110
5
votes
3 answers

SDWebImage UITableView Cell Images Not Persisting

I am using SDWebImage library in order to download and cache images and from a web service asynchronously. Following is the method i use to download the images: - (void) downloadThumbnails:(NSURL *)finalUrl { SDWebImageManager *manager =…
AJ112
  • 5,291
  • 7
  • 45
  • 60
5
votes
2 answers

Explain __weak and __strong usage reasons in SDWebImage code

I think I understand strong and weak keywords well, but I don't understand how it's used in the code below. This code is from SDWebImage by Olivier Poitrey available on github. I understand strong and weak keywords as is described here: Explanation…
5
votes
1 answer

SDWebImage corrupt images

I'm using SDWebImage (2.7.3 framework) and I receive corrupt images, I can't understand exactly the problem. If is the code (memory...) (notes: I get the same error using the SDWebImage project instead of the framework. I'm implementing…
silvaric
  • 1,668
  • 17
  • 27