UICollectionViewFlowLayout(流水布局)
- UICollectionViewFlowLayout称为”流水布局”, 用来约束cell的显示
- 常见属性
1. cell的尺寸
@property (nonatomic) CGSize itemSize;
2. cell之间的水平间距
@property (nonatomic) CGFloat minimumInteritemSpacing;
3. cell之间的垂直间距
@property (nonatomic) CGFloat minimumLineSpacing;
4. 四周的内边距
@property (nonatomic) UIEdgeInsets sectionInset;