title: UICollectionView's cell disappearing
body: <p><strong>What's happening</strong></p>
  
  <p>Currently I have an application that uses two <code>UICollectionViews</code> inside a <code>UITableView</code>. This way I create a Pulse News look like application. My problem with this is that sometimes the 6th and 11th row disappears completely, leaving a blank space where it should be the cell. I wouldn't actually mind, if all the cells were like this (and this way I could assume that I wasn't doing things correctly), but the thing is, is just happening with those specific ones.</p>
  
  <p><strong>My theory</strong></p>
  
  <p>The 6th and 11th rows are the ones that appears when I start scrolling, so by default I am able to see 5 cells, and when I do the first horizontal scrolling the 6th comes up (blank space sometimes). </p>
  
  <p><strong>What I have</strong></p>
  
  <p>The only thing I am doing at the moment is this:</p>
  
  <pre><code> [self.collectionView registerNib:[UINib nibWithNibName:CELL_NIB_NAME bundle:nil] forCellWithReuseIdentifier:CELL_IDENTIFIER];
  </code></pre>
  
  <p>On the <code>viewDidLoad</code>. And on the creation of the cell:</p>
  
  <pre><code>- (UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath
  {
      MyCell *cell = [collectionView dequeueReusableCellWithReuseIdentifier:CELL_IDENTIFIER forIndexPath:indexPath];
  
      NSMutableDictionary *dictionary = [self.DataSource objectAtIndex:[indexPath row]];
  
      [cell buildViewWithDictionary:dictionary withReferenceParent:self.referenceViewController];
  
      return cell;
  }
  </code></pre>
  
  <p>So on my understating nothing fancy going on here. I though there was something wrong on the data source (a dummy JSON file), but sometimes it works ok and the cell shows, so I guess from that part is ok. </p>
  
  <p>So my "question": Does anyone knows what's going on? I don't really like to say that it's a bug from iOS, but I can't think of anything else.</p>
  
  <hr>
  
  <p><strong>Edit 1.0</strong></p>
  
  <p>The amazing part is that this method</p>
  
  <pre><code>-(UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath;
  </code></pre>
  
  <p>Is going from <code>indexPath</code> [0,4] to [0,6] without calculating the [0,5]. First time I actually see this happening in iOS.</p>
  
  <hr>
  
  <p><strong>Edit 2.0</strong></p>
  
  <p>I have switched the way I am creating the cells, and instead of dequeuing I am using the old way:</p>
  
  <pre><code>NSArray *nib = [[NSBundle mainBundle] loadNibNamed:CELL_NIB_NAME owner:self options:nil];
  MyCell *cell = (MyCell *)[nib objectAtIndex:0];
  </code></pre>
  
  <p>Still the same sad result.</p>