title: UICollectionView Not Loading Cells
body: <p>Here is the <code>cellForItemAtIndexPath</code> code I have:</p>
  
  <pre><code>    static NSString *cellIdentifier = @"Cell";
      MyCustomCell *cell = [collectionView dequeueReusableCellWithReuseIdentifier:cellIdentifier forIndexPath:indexPath];
      //do stuff, set label text
  
  if (indexPath.section == 0) cell.label.text = [words1 objectAtIndex:indexPath.row];
  else if (indexPath.section == 1) cell.label.text = [words2 objectAtIndex:indexPath.row];
  else if (indexPath.section == 2) cell.label.text = [words3 objectAtIndex:indexPath.row];
  
      return cell;
  </code></pre>
  
  <p>I register the cell type in <code>viewDidLoad</code>:</p>
  
  <pre><code>[_collectionView registerClass:[MyCustomCell class] forCellWithReuseIdentifier:@"Cell"];
  </code></pre>
  
  <p>I have my collection view setup in my storyboard with delegates and datasource linked up as normal.</p>
  
  <p>Now my issue... I have two approaches, both with problems. I have 3 sections, each drawing from a unique array of data.</p>
  
  <ol>
  <li><p>After I have fetched the required data, I use <code>[_collectionView reloadData]</code>. This loads the correct number of cells, as per the array count, but the cells offscreen are not populated. So when I scroll them onscreen, they have not has their label set.</p></li>
  <li><p>Instead of the above, I try reloading each section as the data is fetched (a preferred route) using the following code (once per section):</p>
  
  <p><code>[self.collectionView performBatchUpdates:^{
      [self.collectionView reloadSections:[NSIndexSet indexSetWithIndex:0]];
  } completion:nil];</code></p></li>
  </ol>
  
  <p>However, the problem using this method, is that after it has reloaded, it fills my collection view with the correct number of cells, but the cells themselves are blank, no text set on the labels.</p>
  
  <p>In both scenarios, if I scroll the non-loading cells onscreen, offscreen and back on again, they will load. But the first time you see them, they don't.</p>