0

SDWebImage not displaying image from URL which is too long and with some special characters.

image URL is:

http://akns-images.eonline.com/eol_images/Entire_Site/2018223/rs_600x600-180323073745-600-michael-davidson-fdny-032218.jpg?fit=around%7C450:350&crop=450:350;center,top&output-quality=100

[albumImageview sd_setImageWithURL:[NSURL URLWithString:aboveURL] placeholderImage:[UIImage imageNamed:placeholder] options:SDWebImageRefreshCached];
CodeBender
  • 35,668
  • 12
  • 125
  • 132
Parthpatel1105
  • 541
  • 6
  • 17

1 Answers1

0

Use the following method

[albumImageview sd_setImageWithURL:[NSURL URLWithString:@"http://akns-images.eonline.com/eol_images/Entire_Site/2018223/rs_600x600-180323073745-600-michael-davidson-fdny-032218.jpg?fit=around%7C450:350&crop=450:350;center,top&output-quality=100"] placeholderImage:[UIImage new] completed:^(UIImage * _Nullable image, NSError * _Nullable error, SDImageCacheType cacheType, NSURL * _Nullable imageURL) {
    albumImageview.image = image;
}];
Jayachandra A
  • 1,335
  • 1
  • 10
  • 21