TestsTested | ✗ |
LangLanguage | Obj-CObjective C |
License | MIT |
ReleasedLast Release | Feb 2016 |
Maintained by Mr.King.
1.创建布局文件,初始化UICollectionView的时候传入布局文件。
2.实现'UICollectionView'以下代理方法即可。
- (CGSize)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout *)collectionViewLayout sizeForItemAtIndexPath:(NSIndexPath *)indexPath {
//返回item的尺寸。
}