title: UICollectionView only shows the last cell
body: <p>I have an array with strings that have to be in a cell label:</p>
  
  <pre><code>var sounds = ["a", "b", "c", "d"]
  </code></pre>
  
  <p>here is the code of cellForItemAtIndexPath:</p>
  
  <pre><code>func collectionView(collectionView: UICollectionView!, cellForItemAtIndexPath indexPath: NSIndexPath) -&gt; UICollectionViewCell{
  
      var cell: MyCollectionViewCell = collectionView?.dequeueReusableCellWithReuseIdentifier("Cell", forIndexPath: indexPath) as MyCollectionViewCell
  
      cell.frame = CGRectMake(0, 0, 100, 100)
  
      cell.label.text = sounds[indexPath.row]
      cell.label.textColor = UIColor.blackColor()
      cell.label.font = UIFont(name: "Arial", size: 12)
      cell.label.textAlignment = NSTextAlignment.Center
  
      return cell
  }
  </code></pre>
  
  <p>The problem is that when i run the app there is only one cell and it is displaying the text of the last item in the array.</p>
  
  <p>I think it is not working cause in the Attribute inspector when i click the CollectionView it says that items is one 1</p>
  
  <p>Is there a way to make the items number to be array.count ?</p>
  
  <p>Here is where i setup the number of items:</p>
  
  <pre><code>func collectionView(collectionView: UICollectionView, numberOfItemsInSection section: Int) -&gt; Int{
      return sounds.count
  }
  </code></pre>