I'm trying to get an image from a local url using AFNetworking with this code:
NSString *path = [DOCUMENTS stringByAppendingPathComponent:[NSString stringWithString:@"My Image.png"]];
[cell.imageView setImageWithURLRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:path]] placeholderImage:[UIImage imageNamed:@"Placeholder Image.png"] success:nil failure:^(NSURLRequest *request, NSHTTPURLResponse *response, NSError *error) {
NSLog(@"%s: setImageWithURLRequest error: %@", __FUNCTION__, error);
}];
and I am getting this error:
NSErrorFailingURLKey=/var/mobile/Applications/6D878789-640E-4299-AA72-45D49211492D/Documents/My Image.png, NSLocalizedDescription=unsupported URL, NSUnderlyingError=0x15df8b60 "unsupported URL"}
How can I do this with AFNetworking?