I am using sdwebimage and back4app backend . We are not able to load image from back4app.
[immg1 sd_setImageWithURL:url11 placeholderImage:[UIImage imageNamed:@"pro"] completed:^(UIImage *image, NSError *error, SDImageCacheType cacheType, NSURL *imageURL) {
if (error)
{
NSLog(@"B4A_Error: %@", error.localizedDescription);
NSLog(@"B4A_Error URL: %@", imageURL.absoluteString);
}
else
{
NSLog (@"B4A_Success");
[immg1 setNeedsDisplay];
}
}];
// [immg1 setImageWithURL:url11 usingActivityIndicatorStyle:UIActivityIndicatorViewStyleGray];
[imgView addSubview:immg1];
For some reason your
SDWebImage
wasn’t persisting theuser-Agent
. I manually forced it to persist before every call. Just try this: