title: Loading data asynchronously in UICollectoinView inside UICollectoinviewCell
body: <p>Hi I am using UICollectionView inside a UICollectionViewCell in swift tvOS so that it scrolls both horizontally and vertically.
  Below is my Outer Collection view code.</p>
  
  <pre><code>func numberOfSectionsInCollectionView(collectionView: UICollectionView) -&gt; Int {
      return variableCount
     }
      func collectionView(collectionView: UICollectionView, numberOfItemsInSection section: Int) -&gt; Int {
          // Each section contains a single `CollectionViewContainerCell`.
          return 1
      }
      func collectionView(collectionView: UICollectionView, cellForItemAtIndexPath indexPath: NSIndexPath) -&gt; UICollectionViewCell {
          // Dequeue a cell from the collection view.            
          if let cell = collectionView.dequeueReusableCellWithReuseIdentifier(CollectionViewContainerCell.reuseIdentifier, forIndexPath: indexPath) as? CollectionViewContainerCell
          {
              cell.configureWithData("some Parameters to build inner collectionView")
                  print("Returning Cell")
                          return cell
          }
  
          return CollectionViewContainerCell()
  
  
      }
  </code></pre>
  
  <p>Method configureWithData is in CollectionViewContainerCell and in that I am calling an API asynchronously and reloading the inner collection view in dispatch_async. </p>
  
  <p>Scrolling and displaying works fine. The problem comes with data when I scroll down outer collection view(4th cell which is not loaded initially) where in I get same data in 1st cell.  I can see that when I say dequeueReusableCellWithReuseIdentifier it re uses the memory allocated to the cell initially which is not visible now. but I am configuring the cell which is not reflecting here. 
  Any help is appreciated. </p>