# LeftAlignedCollectionView
**Repository Path**: zhoufei/LeftAlignedCollectionView
## Basic Information
- **Project Name**: LeftAlignedCollectionView
- **Description**: UICollectionView 左对齐流水布局
- **Primary Language**: Objective-C
- **License**: Apache-2.0
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2016-08-04
- **Last Updated**: 2020-12-19
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
# UICollectionView 左对齐流水布局
通过继承UICollectionViewFlowLayout类,并重写方法:- (NSArray *)layoutAttributesForElementsInRect:(CGRect)rect
{}方法,然后改变UICollectionViewFlowLayout类的布局方案。最后实现效果如下:

主要逻辑代码如下:
