0
SDWebImageManager *manager = [SDWebImageManager sharedManager];
[manager downloadWithURL:imageURL 
delegate:self 
options:0 
success:^(UIImage *image, BOOL cached) {
    _newsimage.alpha = 0.0;
    [UIView transitionWithView:_newsimage
                      duration:3.0
                       options:UIViewAnimationOptionTransitionCrossDissolve
                    animations:^{
                        [_newsimage setImage:image];
                        _newsimage.alpha = 1.0;
                    } completion:NULL];
 }failure:nil];

I am using this code to download images through SDWebImage library and I am geting this error

No visible @interface for 'SDWebImageManager' declares the selector 'downloadWithURL:delegate:options:success:failure:'
Mhmd Backer Shehadi
  • 559
  • 1
  • 12
  • 30

1 Answers1

0

May be you are not use proper SDWebImage. Download SDWebImage and check . Add "SDWebImage" folder into you project and check.

You can also this code to download the image:

    [imageViewName setImageWithURL:[NSURL URLWithString:StrImageUrl] placeholderImage:[UIImage imageNamed:@"noimage.png"] completed:^(UIImage *image, NSError *error, SDImageCacheType cacheType) {
    }];

Import #import "UIImageView+WebCache.h" in you viewcontroller where you use code.

Hope it will resolve your issue. :)

Nirmalsinh Rathod
  • 5,079
  • 4
  • 26
  • 56