I have implemented the SDWebImage
exactly as the description (link) said using xcode 5, and it gives me no errors. This is what the piece of code looks like:
CustomCell *customcell = [self.tableView cellForRowAtIndexPath:[NSIndexPath indexPathForItem:(currentIndexPath) inSection:0]];
Model *model = self.products[currentIndexPath];
NSString *productImageNumber = model.productImageNumber;
NSString *imageUrlString = [NSString stringWithFormat:@"http://www.imagine-app.nl/ProductImages/%@%@",productImageNumber,@".jpg"];
[customcell.imageView setImageWithURL:[NSURL URLWithString:imageUrlString]
placeholderImage:[UIImage imageNamed:@"placeholder-square.jpg"]];
But when I run the app, and I press the button that uses the SDWebImage
, I get two errors:
!!!!! Error creating directory /var/mobile/Library/Logs/CrashReporter/DiagnosticLogs/Photos/Process: The operation couldn’t be completed. (Cocoa error 513.) !!!!
and
unrecognized selector sent to instance 0x1752ea90
I can't figure out where they come from and neither how to solve them because, as mentioned, Xcode gives me no error or issue when I'm editing my code.
I'm a beginner so I may be missing out something simple, bus as mentioned, It is not the implementation of the SDWebImage
that causes this, because I checked it numerous times and everything appeared to be right.
Does anybody have an idea how to solve this? thank you very much in advance!