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
4
votes
0 answers

Is there any NSData equivalent of SDWebImage?

I want SDWebImage like mechanism to download & cache NSData. So that if multiple requests are issued to download NSData from an url, its still downloaded only once and served from cache otherwise.
4
votes
3 answers

SDWebImage change cacheMaxCacheAge

How I can change a static value cacheMaxCacheAge when I use SDWebImage? What way is good? I need to cache images for 5 minutes.
4
votes
1 answer

lldb po error: SDWebImage doesn't support Deployement Target version < 5.0

I have a swift project, in which I have referenced SDWebImage via CocoaPods v0.36.0.beta.2. My project targets ios 8.0+, and my Podfile declares platform :ios, '8.0'. However, when I hit a breakpoint in my application and attempt to execute any po…
Albert Bori
  • 9,832
  • 10
  • 51
  • 78
4
votes
1 answer

No visible @interface for 'UIImageView' declares the selector 'setImageWithURL'

Good afternoon, I'm trying to use SDWebImage in my TableViewController and I get an error two errors (one for each image element) but I can run the App and I can see that the SDWebImage is working fine, but with those 2 errors. How is that possible?…
Lock_85_Dr
  • 57
  • 1
  • 6
4
votes
1 answer

What is the need to check if a thread is main thread before dispatch_sync?

SDWebImage uses the following code in its SDWebImageManager's image download code. Why is it necessary to check if the thread is a main thread instead of doing dispatch_sync regardless? #define dispatch_main_sync_safe(block)\ if ([NSThread…
Boon
  • 40,656
  • 60
  • 209
  • 315
4
votes
3 answers

Autolayout with image view, 2 labels, button - the labels disappear after rotating

In a simple test app for iPhone I am trying to display a user phone in an image view (using SDWebImage through CocoaPods), two labels and a "Play" button - each UI element underneath other as shown in the screenshot: I am using Autolayout in Xcode…
Alexander Farber
  • 21,519
  • 75
  • 241
  • 416
4
votes
3 answers

Compiling SDWebImage demo: libwebp/src/utils/random.c not found

On MacOS Mavericks I'm trying to compile SDWebImage demo. I have checked out the lastest release with git clone https://github.com/rs/SDWebImage.git and opened SDWebImage Demo.xcodeproj in Xcode 5.0.2. Building the project however fails with (here…
Alexander Farber
  • 21,519
  • 75
  • 241
  • 416
4
votes
5 answers

Ignoring file SDWebImage.framework, missing required architecture x86_64

I've installed SDWebImage in my Xcode 5 / iOS 7 project, but building gives me the following issue which will result in a fatal exception: ignoring file SDWebImage.framework/SDWebImage, missing required architecture x86_64 in file…
LordParsley
  • 3,808
  • 2
  • 30
  • 41
4
votes
2 answers

SDWebImage clear cache with tag for a set of image

i'm using the amazing SDWebImage project, to refresh the download of an image i use this: [[SDImageCache sharedImageCache] removeImageForKey:img_key fromDisk:YES]; and works, but i want to know if it's possible to give a tag for some images, so i…
Piero
  • 9,173
  • 18
  • 90
  • 160
4
votes
1 answer

SDWebImage not caching

I'm downloading images using [SDWebImageDownloader.sharedDownloader downloadImageWithURL] with options set to 0. I'm initially not doing anything with them, with the understanding that they will be cached. However, when I use the exact same…
pickwick
  • 3,134
  • 22
  • 30
4
votes
5 answers

How to load a webp image with SDWebImage?

I'm using SDWebImage to load images in my iOS app and I now want to use the webp format. Here's my first try : NSURL *url = [NSURL URLWithString:@"http://www.gstatic.com/webp/gallery/2.webp"]; [self.imageView setImageWithURL:url …
Alexis
  • 16,629
  • 17
  • 62
  • 107
4
votes
3 answers

iOS SDWebImage Cross Fade Effect UITableViewCell

This is how i am successfully using SDWebImageManager to download the images: - (void) downloadThumbnails:(NSURL *) finalUrl { SDWebImageManager *manager = [SDWebImageManager sharedManager]; [manager downloadWithURL:finalUrl …
AJ112
  • 5,291
  • 7
  • 45
  • 60
4
votes
0 answers

SDWebImage is crashing while loading the image - Terminating app due to uncaught exception 'NSInternalInconsistencyException',

I am using SDWebImage library to load images to uitableview. Please see the code for loading below. But when i run from device it is crashing occasionally stating that "Terminating app due to uncaught exception 'NSInternalInconsistencyException' " …
4
votes
3 answers

How know whether image is coming from cache or form url in SDWebImage?

I am using SDWebImage for loading a list of images and it was really good but while loading images next time it's loading image from cache if the url is same. But I need to know its coming form cache or web. Any help would be greatly appreciated.
4
votes
3 answers

SdWebImage download thumbnail and then download high resolution

I want to set a thumbnail image url and high res image url so that first thumbnail image is downloaded and then the high res image is downloaded
Rajat Talwar
  • 11,922
  • 1
  • 18
  • 12