How would I create a staggered UICollectionView with the code I currently have?
- (void)viewDidLoad
{
[self.collectionViewPack registerNib:[UINib nibWithNibName:@"CollectionViewItem" bundle:nil] forCellWithReuseIdentifier:kCellReuseIdentifier];
self.collectionViewPack.backgroundColor = [UIColor whiteColor];
[super viewDidLoad];
UICollectionViewFlowLayout *flowLayout = [[UICollectionViewFlowLayout alloc] init];
[flowLayout setItemSize:CGSizeMake(150, 250)];
[flowLayout setSectionInset:UIEdgeInsetsMake(8, 5, 5, 5)];
[flowLayout setScrollDirection:UICollectionViewScrollDirectionVertical];
[self.collectionViewPack setCollectionViewLayout:flowLayout];
[self.collectionViewPack setAllowsSelection:YES];
self.collectionViewPack.delegate=self;
}
I'd like the columns to be able to scroll independently in their respective columns, but if that's not possible then staggered would be awesome too. Any ideas?