Skip to content

Two colums in different rows #21

Description

@yagogonzalez

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions