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

MBProgressHud and SDWebImagePrefetcher

I'm trying to show a custom MBProgressHUD while downloading a list of URLs with SDWebImagePrefetcher using NSURLConnection methods. SDWebImagePrefetcher has a method that, when called, shows in console the progress of the images download. Now, i…
Phillip
  • 4,276
  • 7
  • 42
  • 74
4
votes
1 answer

Using iOS's UITableView, what if the cell is already dequeued before an image is downloaded into it?

No matter what method is used: iOS 5's [NSURLConnection sendAsynchronousRequest], SDWebImage, or ASIHTTPRequest, what if, while the image is being downloaded, the cell aleady got dequeued (when dequeueReusableCellWithIdentifier is called) and…
nonopolarity
  • 146,324
  • 131
  • 460
  • 740
3
votes
7 answers

sdwebimage: UIImageView+WebCache.h: No such file or directory

I am fairly new to ios development - trying to use sdwebimage in my iphone project. I believe I completed all basic setups as required. But when I build, I get this error: No such file file or directory near this line: #import…
Ravi
  • 3,719
  • 6
  • 28
  • 40
3
votes
1 answer

Lazy Loading : How to integrate SDWebImage with current project?

I am trying to implement lazy loading in my app. And I got SDWebImage static library. Now I am not getting any idea how do I integrate it in my current project. What are the steps to start work? Any tutorials to fulfill my task will be helpful.
Heena
  • 2,348
  • 3
  • 32
  • 58
3
votes
5 answers

Firebase analytics and other modules on Apple M1 chip

I'm using the Firebase and the SDWebImageSwiftUI module in my SwiftUI 2 app with Xcode 12.3 and Cocoapod 1.10.0 on my Apple M1 MacBook Pro. As long as I don't integrate the Firebase Analytics module via Cocoapod the app works fine but when I…
FriendlyGuy
  • 331
  • 5
  • 14
3
votes
1 answer

Repeat source image within SDAnimatedImageView

I have a small tile image url (50x50) that I want to set for SDAnimatedImageView that occupies full screen. Is it possible to make my source tile image repeat within SDAnimatedImageView in vertical and horizontal axis so it occupies all space? Thus…
Ilja
  • 44,142
  • 92
  • 275
  • 498
3
votes
4 answers

No such module 'SDWebImage' using pod

This question is already asked here But no answers work for me. I have tried all the ways which are mentioned below. Open project using .xcworkspace Deleted all the pod related file from project and again pod install even updated the cocoa…
Manish
  • 608
  • 1
  • 11
  • 23
3
votes
1 answer

'SDWebImageCompat.h' file not found error

I'm having this error with my SDWebImage library 'SDWebImageCompat.h' file not found from since I install this pod every day I face new error yesterday it was work fine I didn't even touch any file or change his location know I have these error I…
mazenqp
  • 345
  • 4
  • 19
3
votes
1 answer

How to pass image value to the ImageSlideshow using Swift

I am trying to get images into the ImageSlideshow with SDWebImage. I can get the images but can't format them. I hope I am making sense. let url="https://myoscapp.com/boot/json_procuct_info.php" Alamofire.request(url, method:…
Frank Khan
  • 55
  • 8
3
votes
2 answers

iOS tableview lags on scrolling when loading image to imageview

I'm using a library for asynchronous (background) image loading for UITableviewCell called SDWebImage. But still facing huge lag when scrolling tableview. Am I doing something wrong? Loaded image sizes are quite big around 1000x1000 Code which…
LeTadas
  • 3,436
  • 9
  • 33
  • 65
3
votes
2 answers

SDImageCache - unrecognized selector error after 4.0 migration

I recently upgraded a project to SDWebImage 4.0, which I'm only using to cache images and later retrieve them. Had this working flawlessly on the 3.x version. I'm now getting the following error after migrating... -[SDImageCache…
SonnyB
  • 269
  • 3
  • 12
3
votes
1 answer

why the UIImagePNGRepresentation return larger data than (10 times than) image's raw data size

when i download a image use sdwebimage, and i print in the image downloader operation's - (void)URLSession:(NSURLSession *)session task:(NSURLSessionTask *)task didCompleteWithError:(NSError *)error { UIImage *image = [UIImage…
ximmyxiao
  • 2,622
  • 3
  • 20
  • 35
3
votes
2 answers

SDWebImage blocking tableview title label

I need some help, I'm using SDWebImage to display my images in my Xcode app but I'm also trying to show text using the tableView's testLabel. But what is happening is the image is pushing the textLabel to the right, next to the image instead of…
WokerHead
  • 947
  • 2
  • 15
  • 46
3
votes
1 answer

sdwebimage with permanent caching

I am developing an iOS app that requires the SDWebImage to permanently cache pictures onto the phone. There is an expiration setting in SDWebImage codes, should I set the expiration time to a large value to store the cache permanently? Since I…
Calvin
  • 321
  • 2
  • 16
3
votes
2 answers

SDWebImage downloading but not show image

I'm using UICollectionView. Images are coming from FTP server. Here is my code for downloading and Showing image on button : [tempp sd_setImageWithURL:[NSURL URLWithString:[[arrFilterData objectAtIndex:indexPath.row] valueForKey:@"ZoomPrdImg"]]…