0

i have implemented and installed the framework correctly which it took me days, and also im new to this, the thing is i have this images from the web so i parsed it and then want to load those images using SDImageView, but after compiling im having this exception

-[UIImageView setImageWithURL:placeholderImage:]: unrecognized selector sent to instance 0x75b9730
[2456:11303] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[UIImageView setImageWithURL:placeholderImage:]: unrecognized selector sent to instance 0x75b9730'

when i remove the placeholder value this exception appear

-[UIImageView setImageWithURL:]: unrecognized selector sent to instance 0x7555960
[2236:11303] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[UIImageView setImageWithURL:]: unrecognized selector sent to instance 0x7555960'

my code also goes like this:

NSString *imageLink = [currentData imageLinkFromWeb];
[cell.imageView setImageWithURL:[NSURL URLWithString:imageLink]  placeholderImage:[UIImage imageNamed:@"image.jpg"]];
Ace Munim
  • 325
  • 3
  • 18
  • Did you add `#import `? Do you get build warnings? How do you know `have implemented and installed the framework correctly` when it crashes? – Wain Aug 23 '13 at 10:42
  • 1
    Looks like you have missed some thing while configuring SDWebImage. Reference to the SDWebImage is missing. – OnkarK Aug 23 '13 at 10:43
  • well i follwed an intruction http://iosmadesimple.blogspot.com/2013/04/lazy-image-loading.html on that page and did all the things it says. but at the end im having exception and yes i also added the #import – Ace Munim Aug 23 '13 at 11:00

1 Answers1

0

I ran into this too. For me it was caused by not adding the -ObjC linker flag to the build settings. Instructions for adding the flag are here. Good luck!

Paul
  • 1,897
  • 1
  • 14
  • 28