title: Can't tap on cell to segue until all images load
body: <p>I have a Table View with a load of cells with a UIImageView in each of them.</p>
  
  <p>The images are loaded asynchronously from the internet and appear in the relevant cell once each image been downloaded.</p>
  
  <p>The issue I'm facing is that until every image has loaded, I can't tap on a cell to segue it to another view that's linked to it.</p>
  
  <p>I'm using <code>dispatch_async(dispatch_get_global_queue(0, 0), ^{[self getItemImagesAsync:urlArray];});</code> to start the async process that loads the images.</p>
  
  <p>the <code>getItemImagesAsync</code> method is here:</p>
  
  <pre><code>- (void) getItemImagesAsync:(NSArray *)urlArray{
  
  NSMutableArray *imageArray = [[NSMutableArray alloc] init];
  
  ResizedImageData = imageArray;
  
  for (NSString *searchString in urlArray) {
  
      if (!shouldContinueLoadingImages) {
          return;
      }
  
      [imageArray addObject:[self getImageFromURL:searchString]];
      ResizedImageData = imageArray;
  
      [self.tableView reloadData];
  }
  </code></pre>
  
  <p>}</p>
  
  <p>The <code>shouldContinueLoadingImages</code> variable is set to false when the view changes (due to a search function) to stop unnecessary loading of images.</p>
  
  <p>All of the image data is held in the NSArray <code>ResizedImageData</code></p>
  
  <p>So that the entire table doesn't have to wait for the images to download before rendering, the code uses a try statement in the <code>cellForRowAtIndexPath</code> method to see if an image exists in the image data array:</p>
  
  <pre><code>@try {
          cell.imageView.image = [ResizedImageData objectAtIndex:indexPath.row];
      }
      @catch (NSException *exception) {}
  </code></pre>
  
  <p>Is there some basic concept that I'm missing here, or is it something different?</p>