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
14
votes
1 answer

Build fail when using SDWebImage

I am trying to use the classes of SDWebImage in my project. I've added the classes to my project and when I try to build it I get 7 errors: Undefined symbols for architecture i386: "_OBJC_CLASS_$_MKAnnotationView", referenced from: …
gabsferreira
  • 3,089
  • 7
  • 37
  • 61
13
votes
5 answers

How to use completion block using SDWebImage in Swift 3.0?

Am using SDWebImage to download image. I want to do further operation if image is downloaded successfully. cell.appIcon.sd_setImage(with: url, placeholderImage: UIImage.init(named: "App-Default"), completed: {(image: UIImage!, error: NSError!,…
Parvezkhan
  • 381
  • 1
  • 2
  • 15
13
votes
4 answers

how to get width and height of image from url without downloading?

I'm using SDWebImage for showing images inside cells. But it is perfect mached to frame of UImageView that I'm doing in code below: NSString * s =[NSString stringWithFormat:@"url of image to show"]; NSURL *url = [NSURL URLWithString:s]; …
Łukasz Szpyrka
  • 687
  • 1
  • 6
  • 24
13
votes
4 answers

SDWebImage does not load remote images until scroll

I am using SDWebImage library to load remote images into a table view which uses a custom cell class i have created. I simply use [cell.imageView setImageWithURL:url placeholderImage:[UIImage imageNamed:@"loading.jpg"]]; in…
user2082760
  • 499
  • 2
  • 5
  • 14
13
votes
8 answers

iOS SDWebImage fade in new image

I've been using SDWebImage on my iPhone app to handle all of the image loading. I am using a placeholder image, and I want to crossfade or fade in the new image once it loads. I am using a success block to set the image, and it is working great. No…
nothappybob
  • 3,097
  • 4
  • 16
  • 15
12
votes
2 answers

Is there a way to pre-load 1000's of images using SDWebImage into cache without actually showing them on screen?

I am using SDWebImage to download and cache images. I'd like to pre-load many of the images into cache. Is there an easy way to do this without having to actually display the image to the user? I am currently using this code for…
Ethan Allen
  • 14,425
  • 24
  • 101
  • 194
11
votes
6 answers

How to use SDWebImage without any cache for one instance

I use the SDWebImage image downloading/caching library pretty much any time I display an image in a table view. I would usually implement it like so (in a table view cellForRowAtIndexPath method). [cell.imageView setImageWithURL: [NSURL…
Alex Coplan
  • 13,211
  • 19
  • 77
  • 138
11
votes
3 answers

how can I get the data of cached images SDWebImage

I'm using SDWebImage library to cache web images in my UICollectionView: cell.packItemImage.sd_setImage(with: URL(string: smileImageUrl[indexPath.row])) but I want to save the cached images locally in a file instead of downloading them…
Tawfik Bouabid
  • 1,282
  • 2
  • 9
  • 16
11
votes
3 answers

How to integrate latest SDWebImage API in my Swift based project?

I have used SDWebImage with Objective C and it worked great for me but now I am learning Swift and trying to integrate the latest version of the API but I am stucking at every step as API is in Objective C and there are no steps mentioned to use the…
Developer
  • 6,375
  • 12
  • 58
  • 92
11
votes
1 answer

iOS SDWebImage fade in UITableViewCell

I'm been using SDWebImage(ver3.0) on my iOS app, and I want to fade in the new image of uitableviewcell once it loads like Path2.0, Pinterest, and Viddy.Thanks to iOS SDWebImage fade in new image, fade-in itself is working. However, image in cell is…
tsk
  • 225
  • 3
  • 9
11
votes
10 answers

SDWebImage/UIImageView+WebCache.h file not found

I'm trying to use SDWebImage in my iPhone app. I followed the step by step tutorial to install SDWebImage into my Xcode project. When I try to build my app i'm getting the following error: Lexical or Preprocessor…
Lizard
  • 201
  • 1
  • 3
  • 8
10
votes
1 answer

Occasional black screen after resuming iPhone app

While testing a new build of our iPhone app, we're occasionally seeing the app window go completely black when resuming the app sometime after applicationWillEnterForeground. The only way to make the app work again is to close it completely and…
Isaac Overacker
  • 1,385
  • 10
  • 22
10
votes
4 answers

SDWebImage resizing/scaling/cropping images coming from url before caching them

How can I resize, scale and crop images coming from url before caching them. I tried to achieve this with the following code. [cell.profilePicture setImageWithURL:[NSURL URLWithString:[rowData objectForKey:@"pictureUrl"]]…
Sukhrob
  • 901
  • 4
  • 12
  • 34
9
votes
4 answers

Firebase Storage Image Cache not updating SWIFT

I have setup images on my app to work with firebase UI so that I can cache them easily, by following the docs https://firebase.google.com/docs/storage/ios/download-files My code looks something like this guard let profileImageUrl = user?.url…
user6520705
  • 705
  • 3
  • 11
  • 38
9
votes
2 answers

how to resize UIImage with SDWebImage?

I want to resize image with SDWebImage. I tryed to use imageManager delegate method of SDWebImageManagerDelegate. But, I can't figure out how to call imageManager method. my code is below. import UIKit import SDWebImage class…
kou
  • 163
  • 1
  • 9
1
2
3
58 59