title: How do I programmatically insert custom cells in a collection view?
body: <p>I have a collection view that is not initialized with anything. It is meant to show a grid of images. The images are loaded from the internet and I am attempting to dynamically add these images to the collection view as they are loaded.</p>
  
  <p>The collection view has a custom cell that contains an image view that is given a reuse identifier.</p>
  
  <p>As I understand it I can add items to a collectionView by using the following:</p>
  
  <pre><code>[collectionView insertItemsAtIndexPaths:newData];
  </code></pre>
  
  <p>But what I am trying to figure out specifically is how to add a new custom cell given given an identifier and provide it with my loaded UIImage.</p>