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
3
votes
2 answers

How to use SDWebImage in my project

Iam using collectionview to load image.These images are loaded from url in background thread. Hence the scrolling is not smooth.The images in url get expired after seconds hence i want to update the image with new image.How can i use the SDWebImage…
user1728987
  • 329
  • 3
  • 9
3
votes
3 answers

How to load images using SDWebImage library

Hi I am using SDWebImage for loading images ok that's fine Here I am getting images from services and I want to resize those images and I want to load them using SDWebImage for this I wrote the code below Obj.imageYH---> this is imageURL …
Krish
  • 4,166
  • 11
  • 58
  • 110
3
votes
0 answers

Show only first frame of a GIF IOS SDWebImage

I've been using SDWebImage With swift and my app loads dribble shots, but sometimes when its a GIF it leaks the memory.. can I please know how can I display a GIF but only its first frame showing and a small GIF logo which shows the user its a GIF.…
user5500462
3
votes
2 answers

Can't set completion block swift 2.0 w/ SDWebImageCompletionBlock

When I declare the SDWebImageCompletionBlock, it throws this error before compiling "Use of undeclared type type 'SDWebImageCompletionBlock': let block: SDWebImageCompletionBlock! = {(image: UIImage!, error: NSError!, cacheType: SDImageCacheType!,…
Tim Nuwin
  • 2,775
  • 2
  • 29
  • 63
3
votes
3 answers

iOS solution to load images with animation only if they are not already cached in memory with SDWebImage

I've been struggling with this problem for a couple of days now. Previously I used AFNetworking category to load and cache images, but it doesn't provide a cache type in it's callbacks. So I used to keep track in each controller which images have…
NKorotkov
  • 3,591
  • 1
  • 24
  • 38
3
votes
3 answers

Using UIActivityIndicator-for-SDWebImage with Swift

I'm using SDWebImage and I would like to add a loading indicator. I found the UIActivityIndicator-for-SDWebImage library, and I have tried to add it to my Swift project by adding this: #import "UIImageView+UIActivityIndicatorForSDWebImage.h" to my…
user3746428
  • 11,047
  • 20
  • 81
  • 137
3
votes
1 answer

SDWebImage Not showing after download (only after reopening VController)

I am attempting to load 3 images using the method below. The problem is this, I recieve no errors from my completion block and all 3 images only show after I close my detailedViewController and reopen it. What am I missing ? Thanks for any help,…
AhabLives
  • 1,308
  • 6
  • 22
  • 34
3
votes
0 answers

uitableview table jumps up when image loads with dynamic row height

I want to implement a tableview with dynamic row height. Heights are based on image data returned from server. Based on the set row height, the rows are drawn for image that has to be loaded. But after the image is loaded and gets assigned to the…
3
votes
2 answers

NSURLSession for network images download+cache

There are many third parties libraries for loading a network image and then store it into a disk and/or memory. However it is very easy to implement it using simple NSURLSession API call. here is the code: NSURLCache *myCache = [[NSURLCache…
Amir Aharon
  • 291
  • 2
  • 9
3
votes
1 answer

SDWebImage not caching to disk

I'm trying to use SDWebImage to cache images retrieved from the web. The image gets cached to memory all the time. I've seen the documentation that saving to disk is default. Everything will be handled for you, from async downloads to caching…
Seeya
  • 163
  • 2
  • 16
3
votes
5 answers

Activity indicator in SdWebImage issue

I have a horizontal collection view and it has 20 cells with UIImageView I just want to show the activity indicator till the image download completed. I am using the new SDWebImage library where we have methods as sd_setImageWithURL Till now What i…
3
votes
1 answer

Apply category to a framework class

What I want to achieve is to enable the PFImageView class (from Parse framework) respond to SDWebImage methods. SDWebImageis a framework in itself, but since it essentially applies a category to UIImageView - and PFImageView inherits from…
artooras
  • 6,315
  • 9
  • 45
  • 78
3
votes
1 answer

Can't build unified api app with armv7s architecture

I built a Xamarin Unified API app. When I build it using Armv7 + Arm64 architecture everything is ok. But when I try to build it in the armv7s architecture I get errors related to a third party component - SDWebImage. The SDWebImage is added as a…
Noam Ofek
  • 265
  • 1
  • 10
3
votes
1 answer

SDWebImage iOS 8 performance

I have been using SDWebImage in my project for sometimes. It is working but all of iOS 8 users experience super laggy scrolling. I have updated the latest version of SDWebImage already but the problem doesn't seem to be solved. Has anyone…
Tung Vo Duc
  • 503
  • 6
  • 16
3
votes
1 answer

SDWebImage crash in swift

it seems if I use "self" in the completed block, it will crash. self.imageView.sd_setImageWithURL(MYIMAGEURL , placeholderImage: nil , options: SDWebImageOptions.RetryFailed , progress: {(receivedSize: Int!,…
ZYiOS
  • 5,204
  • 3
  • 39
  • 45