RFQuiltLayout icon indicating copy to clipboard operation
RFQuiltLayout copied to clipboard

Two colums in different rows

Open yagogonzalez opened this issue 11 years ago • 2 comments

Hi everybody, thanks for such a good framework like this.

I have a problem when I try to form something like this: 2jh5a

What I get is this cbspd

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); } }

yagogonzalez avatar Jul 16 '14 09:07 yagogonzalez

Hi, Can you make your layout fit like the above image?

eapsereysophea avatar Sep 22 '16 04:09 eapsereysophea

I fixed it by removing decimals in blockSizeForItemAtIndexPath

internalG avatar Mar 28 '17 09:03 internalG