title: Loading Multiple Images from Url Causing Memory warnings and crashes app when scrolling
body: <p>I am using SdWebImage to load images asynchronously, </p>
  
  <p>First I used Scrollview and image view To load the images caused memory warning. </p>
  
  <p>Then I shifted Collection view, still got memory issue. Now I want to release the memory of offscreen image views which will reduce the memory usage.</p>
  
  <pre><code> -(UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath
  {
  
        CustomCollectionCell *cell = (CustomCollectionCell *)[collectionView dequeueReusableCellWithReuseIdentifier:@"MyCell" forIndexPath:indexPath];
        [cell.Imgview sd_setImageWithURL:[NSURL URLWithString:[[[self.Actualimagearray objectAtIndex:indexPath.item]objectForKey:@"FilePath"]stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]] placeholderImage:[UIImage imageNamed:@"loader.png"]];
        return cell;
  }
  
  -(void)collectionView:(UICollectionView *)collectionView didEndDisplayingCell:(UICollectionViewCell *)cell forItemAtIndexPath:(NSIndexPath *)indexPath
  {
  
        CustomCollectionCell *customcell=(CustomCollectionCell *)cell;
        customcell.Imgview=nil;
  
  }
  </code></pre>
  
  <p>So after the use of didEnddisplay cell, Im not getting any memory issue, But My Images are r getting altered as On scrolling (2nd image comes into 1st and 3rd image comes in to 2nd etc..).</p>
  
  <p>So what is the better way to release the memory of UnseenImages?</p>