Add default ASCollectionViewLayoutInspecting for custom ASCollectionViewLayout

This commit is contained in:
Michael Schneider
2016-06-17 13:26:05 -07:00
parent 35c860c183
commit 9fb3129a0e
4 changed files with 64 additions and 27 deletions

View File

@@ -254,7 +254,7 @@ static NSString * const kCellReuseIdentifier = @"_ASCollectionViewCell";
// Custom layouts will need to roll their own ASCollectionViewLayoutInspecting implementation and set a layout
// delegate. In the meantime ASDK provides a null layout inspector that does not provide any implementation
// and throws an exception for methods that should be implemented in the <ASCollectionViewLayoutInspecting>
_defaultLayoutInspector = [[ASCollectionViewNullLayoutInspector alloc] init];
_defaultLayoutInspector = [[ASCollectionViewDefaultCustomLayoutInspector alloc] initWithCollectionView:self];
}
_layoutInspector = _defaultLayoutInspector;