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
9
votes
5 answers

Ignore query params with SDWebImage

I'm using SDWebImage to cache images in my app, however I recently ran into a problem where images that should be cached keep refreshing. Looking into it I found that the full image url from AWS is actually changing due to parameters tacked onto the…
Kyle Clegg
  • 38,547
  • 26
  • 130
  • 141
9
votes
5 answers

SDWebImage + UITableViewCell, wrong image when scrolling?

i'm having an issue using SDWebImage to load images to a UIImageView inside a custom UITableViewCell. This is my code at the UITableView delegate: static NSString *userTableId = @"userTableId"; UserDetailsTableViewCell *cell =…
DemianArdus
  • 827
  • 8
  • 20
9
votes
2 answers

linker error with ShareKit ios

i have spent 3 days for searching the solution. I don't know what to do with this... I need the -ObjC flag for SDWebImage library ( and AFNetworking too, i think) . I can remove it, and everything is fine with ShareKit, but not fine with…
mikezs
  • 410
  • 1
  • 8
  • 16
9
votes
3 answers

Is there a big advantage to using SDWebImage over AFNetworking for image loading?

SDWebImage claims that AFNetworking doesn't cache the image itself but just the HTTP response, so SDWebImage is faster in recalling the image from cache and presenting it. If I wanted to use purely AFNetworking, is such a claim, true or not, really…
Doug Smith
  • 29,668
  • 57
  • 204
  • 388
9
votes
4 answers

SDWebImage process images before caching

I fetch a lot of images from the web, and they are all kind of sizes - they can be big, small etc.. So I can resize them when I display them in the cell but this is inefficient. It's way better to resize them after SDWebImage have download them and…
Devfly
  • 2,495
  • 5
  • 38
  • 56
9
votes
1 answer

Create a link on the ios filesystem with Objective-C

I'm trying to create a comic reader app which supports both online reading & off-line reading (by downloading). I've found MWPhotoBrowser as my image viewer, which supports SDWebImage as the image cache. My problem is that if some user read little…
David
  • 3,843
  • 33
  • 36
8
votes
5 answers

Why does iOS terminate my app even when I free lots of memory in response to memory warnings?

I can't figure out why iOS is terminating my app (iPad, iOS 4) due to memory usage even after I free a ton of memory in response to low-memory warnings. For example, here's a typical termination scenario, with me logging memory usage every so often…
Ben Hoyt
  • 10,694
  • 5
  • 60
  • 84
8
votes
1 answer

Download SVG Image in iOS Swift

I'm working on a project which I'm getting data from API and in that API I'm getting url for image. but these images are not in PNG,JPEG or JPG formats. They are SVG(Scalable Vector Graphic) images. So as I know there is no direct method, function…
8
votes
3 answers

Image Preloading in iOS

I have developed an app which shows "full screen cards" in a UICollectionView like Tinder. The card contains an image and some text. I was loading the image using SDWebImage's sd_setImageWithURL method in the UICollectionView's cell. However this…
Rajeev Bhatia
  • 2,974
  • 1
  • 21
  • 29
8
votes
4 answers

UIImageView should be as circle view instead of diamond in UICollectionView

I have UICollectionView with UIImageView on it (as shown at image). And I want to make it as circle view. But, when I running application, it's appearing as diamond (image below). In (UICollectionViewCell *)collectionView:(UICollectionView…
levo4ka
  • 2,248
  • 1
  • 19
  • 32
8
votes
8 answers

SDWebImage does not show an image although the image exist remotely on the server

I'm developing an iOS application and I'm using SDWebImage as an image downloader API. I'm using a UICollectionView and I do it in the method - (UICollectionViewCell *)collectionView:(SMToplinksCollectionView *)collectionView…
raven99
  • 261
  • 3
  • 8
8
votes
4 answers

SDWebImage - Memory leak in UITableView?

I'm sorry in advance as maybe this is a dumb and noob question... I'm using SDWebImage to display pictures in a UITableView in my cellForRowAtIndexPath method, using the classic [cell.pointPicture setImageWithURL:[NSURL…
8
votes
4 answers

Image not loading immediately in Table View

I'm using SDWebImage and grabbing Images associated with a news article from a news API. The problem is, the images for the cells on screen aren't loading until I start scrolling on the UITableView. Once I scroll past a cell, and it goes off…
Realinstomp
  • 532
  • 2
  • 13
  • 30
7
votes
5 answers

SDWebImage building for archive (distribution)?

I am using the SDWebImage open source project for loading images asynchronously. I can build & run for the simulator as well as for my local device. However, when i try to build for distribution (i.e. Archive), the compiler doesn't seem to…
AlvinfromDiaspar
  • 6,611
  • 13
  • 75
  • 140
7
votes
1 answer

Image passed from an API not displaying in a pageview container swift

I am working on an iOS application which interacts with an API using alamofire and swiftyJSON. In this api I get a bunch of values returned and one of them is images. the Images returned comes in form of an array but i am able to iterate through the…
King
  • 1,885
  • 3
  • 27
  • 84
1 2
3
58 59