title: indexPath.row always returns zero
body: <p>I have two collection view and one displays names and the other one displays age of the corresponding person. This data is stored inside array of dictionary in a form of "[["Name","Age"],["Name": "Daniel", "Age" : "20"],["Name":"Jake","Age":"20"]]. This data comes from CSV file, so the first element is a header. Inside collectionView cellForItemAtIndexPath, I'm checking collection view and provide data base on row number like cell[indexPath.row]["Name"] and cell2[indexPath.row]["Age"]. However, indexPath.row always returns zero, so I'm getting just headers -</p>
  
  <p><a href="https://i.stack.imgur.com/p91cU.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/p91cU.jpg" alt="enter image description here"></a></p>
  
  <p>How do fix this issue? This is my code -</p>
  
  <pre><code>func numberOfSectionsInCollectionView(collectionView: UICollectionView) -&gt; Int {
      return 2
  }
  
  func collectionView(collectionView: UICollectionView, numberOfItemsInSection section: Int) -&gt; Int {
      return 1
  }
  
  func collectionView(collectionView: UICollectionView, cellForItemAtIndexPath indexPath: NSIndexPath) -&gt; UICollectionViewCell {
  
      if collectionView == self.nameCollectionView {
          let nameCell = collectionView.dequeueReusableCellWithReuseIdentifier("NameCell", forIndexPath: indexPath) as! NameCell
  
          nameCell.data.text = self.data?[indexPath.row]["Name"]
          println(indexPath.row)
  
          return nameCell
      }
      else{
          let ageCell = collectionView.dequeueReusableCellWithReuseIdentifier("AgeCell", forIndexPath: indexPath) as! AgeCell
  
          ageCell.data.text = self.data?[indexPath.row]["Age"]
  
  
  
          return ageCell
      }
  
  }
  </code></pre>