Clarify default value behavior of the layoutDelegate for flow layouts

This commit is contained in:
Levi McCallum
2015-10-11 11:28:01 -07:00
parent a9023dd400
commit ba72c73779
3 changed files with 25 additions and 7 deletions

View File

@@ -21,11 +21,12 @@
- (instancetype)initWithCollectionView:(ASCollectionView *)collectionView flowLayout:(UICollectionViewFlowLayout *)flowLayout
{
self = [super init];
if (flowLayout == nil) {
return nil;
}
self = [super init];
if (self != nil) {
self.collectionView = collectionView;
_layout = flowLayout;