I am developing an iOS application and I am using SDWebImage as the image downloader API.
I am using a UICollectionView and I am doing this in a method
- (UICollectionViewCell *)collectionView:(SMToplinksCollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath
Some images are uploaded, and some are not. In messages that do not load, an error message is displayed:
2014-06-15 12: 11: 50.203 c_shadow_ios_iphone [6867: 60b] === Error: Domain error = NSURLErrorDomain Code = -1100 "Operation could not be completed. (NSURLErrorDomain error -1100.)"
Error -1100: NSURLErrorFileDoesNotExist
In addition, UIImage seems to be null.
I checked the URL that SDWebImage is trying to load and it displays the image correctly, so the error does not seem reasonable.
Here is the code of the method I'm using:
- (UICollectionViewCell *)collectionView:(SMToplinksCollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath { SMToplinkCollectionViewCell *cell = [collectionView dequeueReusableCellWithReuseIdentifier:TopLinksCollectionViewID forIndexPath:indexPath]; NSArray *collectionViewArray = [self getToplinksArrayAccordingToTheIndex:collectionView.index];
Exit
Image - NIL
Error: Error Domain = NSURLErrorDomain Code = -1100 "Operation could not be completed (error NSURLErrorDomain -1100.)"
What am I missing here?
ios objective-c image uicollectionview sdwebimage
raven99
source share