title: Large UICollectionViewCell's disappearing with custom layout
body: <p>I subclassed <code>UICollectionViewLayout</code>. So far, so good.<br>
  However, I have some cells that are wider than the screen, and sometimes these disappear while scrolling. When you scroll some more, they magically reappear where they should be. I can show you my code, however I think there's nothing wrong with it since it works in 90% of the cases.. However, really large cells (more than two times the screen size) disappear sometimes. </p>
  
  <pre><code>NSMutableArray* attributes = [NSMutableArray array];
  for (int section=0; section &lt; [[self collectionView] numberOfSections]; section++) {
      [attributes addObject:[self layoutAttributesForSupplementaryViewOfKind:UICollectionElementKindSectionHeader atIndexPath:[NSIndexPath indexPathForItem:0 inSection:section]]];
          for (int row=0; row &lt; [[self collectionView] numberOfItemsInSection:section]; row++) {
              NSIndexPath* indexPath = [NSIndexPath indexPathForItem:row inSection:section];
              [attributes addObject:[self layoutAttributesForItemAtIndexPath:indexPath]];
          }
   }
   return attributes;
  </code></pre>
  
  <p>I've also these posts: <a href="https://stackoverflow.com/questions/13360975/uicollectionviews-cell-disappearing-ios">UICollectionView&#39;s cell disappearing</a> and <a href="https://stackoverflow.com/questions/13016302/large-cells-in-a-uicollectionview-getting-removed-while-the-cell-is-still-displa">Large cells in a UICollectionView getting removed while the cell is still displayed</a>
  However, a solution isn't mentioned. Can anybody help me with this? Could it be the problem is on Apple's side? And if it is, is there anything I can do to solve it myself?</p>