vendredi 24 octobre 2014

sdwebimage unsupported url error while loading images from gallery in ios 8


Vote count:

0




in previous version of SDWebImage , i was able to load gallery images i.e alasset urls , using below code



SDWebImageManager * theManager = [SDWebImageManager sharedManager];

[theManager downloadWithURL:asset.defaultRepresentation.url options:0 progress:nil completed:^(UIImage *image, NSError *error, SDImageCacheType cacheType, BOOL finished) {

if (image) {

cell.m_pContainerView.image = image;
}
else
{
cell.m_pContainerView.image = [UIImage imageNamed:@"placeholder.png"];
}
}];


but in for ios 8 , i am using SDWebImage version 3.7.1 , the problem is above code giving unsupported url error , anybody know how to load alasset urls using latest version of SDWebImage .


Thanks .



asked 2 mins ago

RIYAZ

2,365






sdwebimage unsupported url error while loading images from gallery in ios 8

Aucun commentaire:

Enregistrer un commentaire