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

SDImageCache placeholder gif

I am trying to create a gif as a place holder for my SDImageCache. So first off I created the gif: _imageView =[[UIImageView alloc] initWithFrame:CGRectMake(0, 0, cell.thumbnailImageView.frame.size.width, …
maxisme
  • 3,974
  • 9
  • 47
  • 97
0
votes
2 answers

Can't update a UIImageView properly

I call this method in my ViewController, which contains a UIScrollView, when the user taps a button. -(void) updateView:(NSURL *) urlPicture{ UIImageView *imageNews = [[UIImageView alloc]initWithFrame:CGRectMake(0,0,300,200)]; …
user3249186
  • 185
  • 4
  • 13
0
votes
2 answers

Asynchrone image download with return value required

I'm trying to setup an asynchrone download of images on my application. I'm using SDWebImage as suggested in this issue. I put breakpoints on the progress and completed method and everything is normal. It's working perfectly but I have another…
brcebn
  • 1,571
  • 1
  • 23
  • 46
0
votes
1 answer

Wait till setImageWithURL is loaded SDWebImage

What i need is to wait till setImageWithURL has finished proccesing the image, here is my code on the viewDidLoad method: UIImageView *test = [[UIImageView alloc] init]; [test setImageWithURL:[NSURL URLWithString:object.imageUrl]]; Is there anyway…
Fernando Santiago
  • 2,128
  • 10
  • 44
  • 75
0
votes
0 answers

SDWebImage setImageWithURL return empty outside any other method than cellForRowAtIndexPath

I am using SDWwbImage, wich i download from here: https://github.com/rs/SDWebImage I tested in the method: cellForRowAtIndexPath and everything works fine, here is my code: [cell.image setImageWithURL:[NSURL URLWithString:object.imageUrl]]; Now i…
Fernando Santiago
  • 2,128
  • 10
  • 44
  • 75
0
votes
1 answer

UIImage movement on UITableView when selecting cell or scrolling

I feed a UITableView with a list of names and images from a JSON. "SDWebImage" handles images download. It works OK apart from the fact that the images move to the left when the user selects a row or when scrolls the table view. Two screen captures…
Luis
  • 447
  • 1
  • 7
  • 24
0
votes
1 answer

How could I make the image view, that is located in too bar, response user actions

I've added an image view, that is loaded by SDWebImage, to a tool bar. ... [imgv setImageWithURL:[NSURL URLWithString: url] placeholderImage:[UIImage imageNamed:@"loading.png"]]; UIBarButtonItem *userpicture = [[UIBarButtonItem alloc]…
zontragon
  • 780
  • 1
  • 9
  • 27
0
votes
2 answers

CollectionView prepareForSegue Not Sending Image Data to DetailView

I have a CollectionView setup that displays remote image data from server. I am able to view the images in the CollectionView, but nothing shows when I tap the item for the DetailView. It was working properly while I used local images, but after…
John Blanchard
  • 195
  • 2
  • 11
0
votes
0 answers

Crash when using SDWebImage

My app keeps crashing everytime i call this method setImageWithURL I've installed SDWebImage using pods and included -ObjC in other linker flags. Here's the console log : -[UIImageView setImageWithURL:placeholderImage:]: unrecognized selector…
0
votes
1 answer

How to cache image and scale it correctly?

I am currently using SDWebimage and calling it like so, not sure if it is caching or how I can check it? Also, how do I scale it accordingly without it looking stretched. The picture is originally 512 x 512 and I want to scale it down. I saw this…
Lion789
  • 4,402
  • 12
  • 58
  • 96
0
votes
1 answer

HTTP call runs first time but then waits forever

I'm using SDWebImage to load images asynchronously. I want to combine comments and photos in a dictionary like below: - (NSArray *) fetchPhotos:(NSArray *) requestedPhotoArray { NSMutableArray *photos; UIImageView *imageview; for…
zontragon
  • 780
  • 1
  • 9
  • 27
0
votes
2 answers

add UIImage from a URL to a promotion screen in a rubymotion app

I've had a bit of trouble following the docs to add an image to a promotion screen. I am pulling a post object from a server which contains an image url. I would like to show the post body as well as an image if one exists in the post. My most…
wuliwong
  • 4,238
  • 9
  • 41
  • 69
0
votes
1 answer

Can I use a custom UIImageView setter with SDWebImage?

When my image finishes downloading with SDWebImage, and it sets my table view cell's image view property, I want to be notified of this in the most transparent way possible. My first idea was to use a custom setter for my image view, but as…
user212541
  • 1,878
  • 1
  • 21
  • 30
0
votes
1 answer

Does SDWebImage employ both memory caching and disk caching (when needed)? If not, how should I handle this?

My app deals with a lot of image downloads, and as such I want it to be as fast as possible for the user. Preferably, when the image downloads, it should never have to be downloaded again. My initial strategy was to save all the UIImages in an…
Doug Smith
  • 29,668
  • 57
  • 204
  • 388
0
votes
1 answer

SDWebImage : cgrasterdata is keep on allocating, not getting released

I am using sdwebimage to display images from web(setimagewithurl method) in tableviews,collectionviews,views etc. When i check the memory usage in instruments, i was struck by cgrasterdata allocation and that is not getting released. This results in…