RFQuiltLayout
RFQuiltLayout copied to clipboard
Two colums in different rows
Hi everybody, thanks for such a good framework like this.
I have a problem when I try to form something like this:

What I get is this

This is the code I've used:
- (void)viewDidLoad { ... RFQuiltLayout* layout = (id)[self.collectionView collectionViewLayout]; layout.direction = UICollectionViewScrollDirectionVertical; layout.blockPixels = CGSizeMake(150, 220); }
- (CGSize) blockSizeForItemAtIndexPath:(NSIndexPath *)indexPath { if (indexPath.row == 0) { return CGSizeMake(1, 0.5); } else { return CGSizeMake(1, 1); } }
Hi, Can you make your layout fit like the above image?
I fixed it by removing decimals in blockSizeForItemAtIndexPath