title: UITableView custom cell images disappear after scrolling.
body: <p>I am in the process of creating my open grid view. </p>
  
  <p>I created a custom cell that looks like so:</p>
  
  <p><img src="https://i.stack.imgur.com/dnBBP.png" alt="enter image description here"></p>
  
  <p>I handle populating it like so:</p>
  
  <pre><code>- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
      static NSString *MyIdentifier = @"Cell";
  
      TableGalleryCustomCell *cell = (TableGalleryCustomCell*)[tableView dequeueReusableCellWithIdentifier:MyIdentifier];
  
      if( cell == nil) {
          NSArray *topLevelObjects = [[NSBundle mainBundle] loadNibNamed:@"TableGalleryCustomCell" owner:nil options:nil];
          for (id currentObject in topLevelObjects) {
              if ([currentObject isKindOfClass:[UITableViewCell class]]) {
                  cell = (TableGalleryCustomCell*)currentObject;
                  break;
              }
          }
      }
  
      if (countingIndex &lt; [[[self.appDelegate rssParser] rssItems] count]) {
          cell.firstAddress.text = [[[[self.appDelegate rssParser] rssItems] objectAtIndex:countingIndex] Address];
          cell.firstPrice.text = [[[[self.appDelegate rssParser] rssItems] objectAtIndex:countingIndex] Deposit];
          if ([[[[[[self appDelegate] rssParser]rssItems]objectAtIndex:countingIndex] imageURLs] count] != 0 ) {
              [cell.firstImage setImageWithURL:[NSURL URLWithString:[[[[[self.appDelegate rssParser] rssItems] objectAtIndex:countingIndex] imageURLs] objectAtIndex:0.0]]];
              cell.firstImage.tag = countingIndex;
          }
      }
  
      countingIndex++;
      if (countingIndex &lt; [[[self.appDelegate rssParser] rssItems] count]) {
          cell.secondAddress.text = [[[[self.appDelegate rssParser] rssItems] objectAtIndex:countingIndex] Address];
          cell.secondPrice.text = [[[[self.appDelegate rssParser] rssItems] objectAtIndex:countingIndex] Deposit];
          if ([[[[[[self appDelegate] rssParser]rssItems]objectAtIndex:countingIndex] imageURLs] count] != 0 ) {
              [cell.secondImage setImageWithURL:[NSURL URLWithString:[[[[[self.appDelegate rssParser] rssItems] objectAtIndex:countingIndex] imageURLs] objectAtIndex:0.0]]];
              cell.secondImage.tag = countingIndex;
          }
      }
  
      countingIndex++;
      if (countingIndex &lt; [[[self.appDelegate rssParser] rssItems] count]) {
          cell.thirdAddress.text = [[[[self.appDelegate rssParser] rssItems] objectAtIndex:countingIndex] Address];
          cell.thirdPrice.text = [[[[self.appDelegate rssParser] rssItems] objectAtIndex:countingIndex] Deposit];
          if ([[[[[[self appDelegate] rssParser]rssItems]objectAtIndex:countingIndex] imageURLs] count] != 0 ) {
              [cell.thirdImage setImageWithURL:[NSURL URLWithString:[[[[[self.appDelegate rssParser] rssItems] objectAtIndex:countingIndex] imageURLs] objectAtIndex:0.0]]];
              cell.thirdImage.tag = countingIndex;
          }
      }
  
      countingIndex++;
      if (countingIndex &lt; [[[self.appDelegate rssParser] rssItems] count]) {
          cell.fourthAddress.text = [[[[self.appDelegate rssParser] rssItems] objectAtIndex:countingIndex] Address];
          cell.fourthPrice.text = [[[[self.appDelegate rssParser] rssItems] objectAtIndex:countingIndex] Deposit];
          if ([[[[[[self appDelegate] rssParser]rssItems]objectAtIndex:countingIndex] imageURLs] count] != 0 ) {
              [cell.fourthImage setImageWithURL:[NSURL URLWithString:[[[[[self.appDelegate rssParser] rssItems] objectAtIndex:countingIndex] imageURLs] objectAtIndex:0.0]]];
              cell.fourthImage.tag = countingIndex;
          }
      }
  
      countingIndex++;
  
  
      return cell;
  }
  </code></pre>
  
  <p>It is a bit messy but it works.....until I scroll. After the image is loaded then scrolled off the screen the image disappears. </p>
  
  <p>I believe that it maybe due to the imageViews of the cells being lost? </p>
  
  <p>I tried the exact same implementation but with only 1 imageView in each cell and all works great. </p>
  
  <p>Any point in the right direction would be very much appreciated. </p>
  
  <p>I appreciate any help and thank you for your time. </p>