HTWaterFlowLayout *waterFlow = [[HTWaterFlowLayout alloc] init];
waterFlow.delegate = self;
UICollectionView *collectionView = [[UICollectionView alloc] initWithFrame:self.view.bounds collectionViewLayout:waterFlow];
collectionView.backgroundColor = [UIColor whiteColor];
collectionView.dataSource = self;
[collectionView registerNib:[UINib nibWithNibName:@"HTShopCell" bundle:nil] forCellWithReuseIdentifier:reuseIdentifier];
[self.view addSubview: _collectionView = collectionView];
icoderhong / htwaterflowlayout Goto Github PK
View Code? Open in Web Editor NEWLicense: Apache License 2.0