github 地址github.com/Wanghongchao12138/CustomerCollectionView
/* 設置cell 的寬高 */
(CGFloat)collectionView:(UICollectionView)collectionView layout:(WHCWaterfallFlowLayout)collectionViewLayout heightForWidth:(CGFloat)width atIndexPath:(NSIndexPath*)indexPath;
/* 設置collection 的頭視圖的size */
(CGSize)collectionView:(UICollectionView)collectionView layout:(WHCWaterfallFlowLayout)collectionViewLayout referenceSizeForHeaderInSection:(NSInteger)section;
/* 設置collection footer 視圖的size */
(CGSize)collectionView:(UICollectionView)collectionView layout:(WHCWaterfallFlowLayout)collectionViewLayout referenceSizeForFooterInSection:(NSInteger)section;
-- colCount -- 設置CollectionView 的cell 的列數 -- sectionInset -- 設置cell 的間距