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

How to trim central part of downloaded image with SDWebImage in developing iOS App

I am developing iOS App with SDWebImage. I would like to trim central 100px*100px from downloaded image and set this in UIImageView. I am writing down the following code, however not a trimmed image but an original downloaded image is set in…
supermonkey
  • 631
  • 11
  • 25
0
votes
2 answers

Show UIButton image as round with SDWebImage

My code used to work before switching to SDWebImage. But now it is not working. I mean, the image is presented as a square as opposed to a circle. Here is my code - (void)makeImageViewRound:(UIButton *)imageButton { …
Katedral Pillon
  • 14,534
  • 25
  • 99
  • 199
0
votes
2 answers

SDWebImage IUTableView setBackgroundImage

Normally I can set the background image of a UITableView using [self.tableView setBackgroundView:imageView]; Also, using SDWebImage I can add an image to a UIImageView in two steps: #import "SDWebImage/UIImageView+WebCache.h" ... [self.myImageView…
learner
  • 11,490
  • 26
  • 97
  • 169
0
votes
0 answers

SDWebImage Demo fails out of hte box on Xcode5 with error: Apple LLVM 5.1 Error

Has anyone experienced and fixed this problem? I am trying to try out SDWebImage. But when I try to run their demo, it keeps crashing. I am using XCode5. Should I be downloading a specific version of the project to test? If so which one? My XCode…
Konsol Labapen
  • 2,424
  • 2
  • 15
  • 12
0
votes
2 answers

SDWebImage not working

I'm trying use SDWebImage for downloading image from a web. But it's not working. How can I fix it? DetailView.m: #import "DetailViewController.h" #import "UIImageView+WebCache.h" - (void)viewDidLoad { [super viewDidLoad]; [self.imageView…
user3819738
  • 209
  • 3
  • 9
0
votes
2 answers

access the NSData downloaded with SDWebImage

My server sends a picture(base64) along with a timestamp per request and i just integrated SDWebImage into my app, i'd like to know how to access the raw NSData that SDWebImage gets from [imageView setImageWithURL:[NSURL URLWithString:[NSString…
user2038460
0
votes
2 answers

iOS: How to execute functionn in other task without lagg

I have a problem. I have a UITableViewCell with images. The images are dynamically loaded from the application bundle. The function is about 200 lines with a lot of if satements in it. I basically extract the icon of the file acording to the suffix…
David Gölzhäuser
  • 3,525
  • 8
  • 50
  • 98
0
votes
1 answer

Passing image using SDWebImage from tableviewcontroller to detailview

I'm using SDWebImage to pass an image located in my TableViewCell to a UIImageView in my Detail View Controller. For some reason, this line in my DetailViewController is throwing me the error: "No visible @interface for NSDictionary declares the…
Brittany
  • 1,359
  • 4
  • 24
  • 63
0
votes
2 answers

How to load images from JSON into UIImageView using SDWebImage?

I'm trying to display images from a JSON url in an UIImageView, similar to Tinder, using SDWebImage. Every tutorial I've come across only deal with downloading either single image urls (@"suchandsuch.png"), or displaying the images inside of…
user3592174
  • 13
  • 1
  • 3
0
votes
1 answer

progress view for multiple image downloads

Here's my scenario: I have two UIImageViews stack together (one on top of the other), something like below: I want to make them visible to user only when both of them finished loading image (I am using SDWebImage with Progress View library). Before…
Allan Jiang
  • 11,063
  • 27
  • 104
  • 165
0
votes
1 answer

What is the delegate method to catch the transition of images in SDWebImage component?

I am writing the following code that uses the SDWebImage library and animates a set of images that load from an array of ImageURLs into an ImageView component. It all works fine. imageView.animationDuration = 40.0; [imageView…
London guy
  • 27,522
  • 44
  • 121
  • 179
0
votes
1 answer

SDWebImage: Cache-Control Header is not used

I'm loading my images in my UICollectionView with UIImageView+WebCache category. I'm using the option SDWebImageRefreshCached: [cell.imageView setImageWithURL:url placeholderImage:nil options:SDWebImageRefreshCached | SDWebImageRetryFailed …
Ralf Hundewadt
  • 1,078
  • 1
  • 13
  • 25
0
votes
1 answer

SDWebImage Library is not working?

I used SDWebImage library to download images from server. In my code I am facing an image loading issue & SDwebImage. The problem is: I've written the code like this: [cell.imgNews setImageWithURL:[NSURL URLWithString:[self.arrImages…
0
votes
1 answer

downloading image into NSHomeDirectory by using SDWebImage

__block UIActivityIndicatorView *activityIndicator; __weak UIImageView *weakImageView = self.headpic; [self.headpic setImageWithURL:imageUrl placeholderImage:nil options:SDWebImageProgressiveDownload progress:^(NSInteger receivedSize, NSInteger…
yegomo
  • 297
  • 2
  • 11
0
votes
0 answers

SDWebImage Image received size is NULL

I am trying to show progress view with SDWebImage but when i try below code then it return "0" in "receivedSize" [cell. ImageHotDish setImageWithURL:[NSURL URLWithString:picName] placeholderImage:[UIImage imageNamed:nil] options:0…
Android
  • 65
  • 3
  • 7