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

SDWebImage+WebP ImageView flicker when app Re-enter foreground

I am facing issue on SDWebImage+WebP integration in our project via CocoaPods. I am using SDWebImage+WebP to load my webp images from my server in list of collection in UItableView. Every time I re-enter foreground or on every relaunch imageView in…
swapnil
  • 337
  • 2
  • 6
7
votes
2 answers

How to use SDWebImageManager to download image only if NOT already cached?

I need the completion handler functionality of SDWebImageManager (to set the downloaded or cached image black and white), so I'm using it instead of sd_setimage. My issue is that I can't figure out how to use SDWebImageManager to download OR get the…
lucius degeer
  • 403
  • 1
  • 6
  • 17
7
votes
5 answers

no visible @interface for UIImageView declares the selector sd_setShowActivityIndicatorView and sd_setIndicatorStyle is not detected

It is very strange that sd_setImageWithURL is working but got an error in sd_setShowActivityIndicatorView:YES and sd_setIndicatorStyle. Below what I have done. [cell.cellImgView sd_setShowActivityIndicatorView:YES]; [cell.cellImgView…
Abhishek Mitra
  • 3,335
  • 4
  • 25
  • 46
7
votes
6 answers

Set placeholder image only if image fails to load SDWebImage

I want to show the imageview's background color till the download is in progress and if the download fails or image is not available then i want to show a placeholder image. How can i achieve this? The main objective is to set the image later not…
Ankit Kumar Gupta
  • 3,994
  • 4
  • 31
  • 54
7
votes
3 answers

Handling download of image using SDWebImage while reusing UITableViewCell

I have used third party library SDWebImage to download image for my UITableView cells, UIImageView is created within cell and fired request while configuring cell like this. [imageView setImageWithURL:[NSURL URLWithString:imageUrl]…
fztest1
  • 144
  • 2
  • 8
7
votes
5 answers

Table view scroll lagging when using SDWebImage

I am loading some images from the internet in a table view inside cellForRowAtIndexPath. Here is my code: - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { static NSString *MyIdentifier =…
Adrian
  • 19,440
  • 34
  • 112
  • 219
6
votes
4 answers

Error 'compile swift source files (arm64)' when building project with Xcode 13

I am developing an app with Xcode 13.0 (13A233) on Macbook with an M1 chip. After updating pods to the latest version, the pods are complaining about error CompileSwiftSources normal arm64 com.apple.xcode.tools.swift.compiler (in target 'Alamofire'…
Nirmit Dagly
  • 1,272
  • 1
  • 12
  • 25
6
votes
1 answer

SDWebimage vs HanekeSwift's

There are many caching libraries available in iOS. The most popular library is SDWebImage for caching images. There is one image cache library is HanekeSwift’s for image cache. My question is What is main difference between SDWebImage and…
Donal
  • 6,082
  • 2
  • 19
  • 30
6
votes
5 answers

How to get Image size from URL in ios

How can I get the size(height/width) of an image from URL in objective-C? I want my container size according to the image. I am using AFNetworking 3.0. I could use SDWebImage if it fulfills my requirement.
6
votes
2 answers

SDWebImage checking if image cached using Swift: Ambiguous Reference

I am trying to find out if an image has already been cached using SDWebImage but when I try to use this method I get the error "Ambiguous reference to member 'cachedIageExistsForURL". let bool = SDWebImageManager.cachedImageExistsForURL(imgURL) I…
onemillion
  • 682
  • 5
  • 19
6
votes
0 answers

SDWebImage do not assign an image from url - Downloaded image has 0 pixels

This is my simple extension for UIImageView: extension UIImageView { func setImageWithUrl(url: String?) { setImageWithUrl(url, placeholder: nil) } private func setImageWithUrl(url: String?, placeholder: UIImage? = UIImage(), deleteCacheImage:…
Bartłomiej Semańczyk
  • 59,234
  • 49
  • 233
  • 358
6
votes
2 answers

Size of cached objects by SDWebImage

I wanted to calculate the current in-memory size occupied by SDWebImage (Not the max size of SDWebImage). During the application usage i need to track the current RAM allocation by SDWebImage cached objects. Basically i wanted to calculate the size…
Karthik207
  • 493
  • 9
  • 27
6
votes
4 answers

How to install SDWebImage

I need to manage photos in my app and have read much about SDWebImage framework which seems to be the best way to go. However I am finding it incredibly difficult to install. I dont know Ruby and have never used a podfile, so am installing it by…
Kitcc
  • 2,138
  • 4
  • 24
  • 42
6
votes
3 answers

SDWebImage setImageWithURL iOS8 crash

I've been using SDWebImage successfully for long. But with iOS8 its crashing when we set image i.e. [ myImageView setImageWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"%@",@"url"]] placeholderImage:[UIImage…
Mann
  • 5,477
  • 6
  • 45
  • 57
6
votes
3 answers

SDWebImage eager load images

I am trying to eager load bunch of images: for (NSDictionary *s in things) { [manager downloadWithURL:[NSURL URLWithString:s[photo]] options:0 progress:nil completed:nil]; } It's not…
0xSina
  • 20,973
  • 34
  • 136
  • 253