11

I am using collectionView in my iPad application. I have used custom layout class which inherited UICollectionViewFlowLayout class.

I am using horizontal scroll directional. The problem is, whenever we use scroll for collection view, some times cell get disappear. I debugged the code, and found that in data source method after creating cell, its hidden property get automatically ON.

I tried using below line but its not working

   cell.hidden = NO  

I have below method also to invalidate layout on bound change.

    - (BOOL)shouldInvalidateLayoutForBoundsChange:(CGRect)newBounds {
          return YES;
        }

But still I am facing problem. Any solution on this ?

Thanks in advance.