title: UITableView UIImageView image Flickering - iOS/Objective C
body: <p>For some reason when I'm downloading my image using <strong>GCD</strong>, the image will randomly start flickering. </p>
  
  <p>I'll reset the content settings in simulator and it'll work once, then it'll just start flickering again.</p>
  
  <p>This is the code I am using. I've got the reloads in there because if I don't reload it, the image doesn't show until I tap on the cell.</p>
  
  <pre><code>dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_BACKGROUND, 0), ^(void) {
      NSURL *url = [NSURL URLWithString:self.entries.arrayimage];
      NSData *imgData = [NSData dataWithContentsOfURL:url];
  
  
      dispatch_sync(dispatch_get_main_queue(), ^(void) {
          cell.imageView.image = nil;
          UIImage *img = [UIImage imageWithData:imgData];
          cell.imageView.image = img;
          [self.tableView reloadData];
  
      });
  
  
  });
  return cell;
  [self.tableView reloadData];
  </code></pre>