Skip to content

Instantly share code, notes, and snippets.

@MSch
Forked from luca-bernardi/TheEleganceOfBlock.mm
Created August 5, 2013 07:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MSch/6154148 to your computer and use it in GitHub Desktop.
Save MSch/6154148 to your computer and use it in GitHub Desktop.
self.collectionView = ({
UICollectionViewFlowLayout *flowLayout = [[UICollectionViewFlowLayout alloc] init];
UICollectionView *collectionView = [[UICollectionView alloc] initWithFrame:self.view.bounds
collectionViewLayout:flowLayout];
collectionView.delegate = self;
collectionView.dataSource = self;
collectionView;
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment