I am trying to fetch images from URL and displaying it on collection view how to do it ? I have used following code but didnt get answer
(UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath {
collectionGalleryTechrCell *cell=[collectionView dequeueReusableCellWithReuseIdentifier:reuseIdentifier forIndexPath:indexPath];
// NSData * imageData = [[NSData alloc] initWithContentsOfURL: [NSURL URLWithString:Url];
//UIImage *image = [UIImage imageWithData:imageData];
//CollectionViewImage.image = image;
NSURL *urlBack = [NSURL URLWithString:@"http://ssk.com/zpschool1/web/gallery/download%20(4).jpg"];
NSData *urlDataBack = [NSData dataWithContentsOfURL:urlBack];
UIImage *imageBack = [UIImage imageWithData:urlDataBack];
cell.myImg.image =imageBack;
//cell.myImg.image = [UIImage imageWithData:ImgURL];
cell.myImg.userInteractionEnabled=YES;
return cell;
}