lxcid/LXReorderableCollectionViewFlowLayout

Problem with customizing cell size

johnqh opened this issue · 0 comments

In the demo project, add the following code to LXCollectionViewController.m

  • (CGSize)collectionView:(UICollectionView )collectionView layout:(UICollectionViewLayout)collectionViewLayout sizeForItemAtIndexPath:(NSIndexPath *)indexPath
    {
    return CGSizeMake(indexPath.row == 0 ? 200 : 100, 100);
    }

The resulted screen is like this. The last row is messed up:

ios simulator screen shot may 22 2014 3 48 15 pm