Collection View,with custom layouts, cells misbehave on scrolling
问题 I am trying to create custom tiled layout using UICollectionView. It renders perfectly as desired in simulator once I run my app. But the moment I scroll the view and bring it back all the cell's frame changes and the cells get overlapped, leaving spaces, randomly. I am not able to solve this issue past 2 days. Here goes the code from my custom layout class. -(void)prepareLayout{ [self createCellSizeArray];//cellSizeArray holds cell sizes for all the cells(calculated statically) [self