Prevent calling unsupported UICollectionViewDelegate methods (supplementary view appearance)

This commit is contained in:
Scott Goodson
2015-12-31 00:21:20 -08:00
parent 0636ec44ed
commit df9f433353
4 changed files with 14 additions and 9 deletions

View File

@@ -54,7 +54,7 @@ static NSUInteger kNumberOfImages = 14;
_layoutInspector = [[MosaicCollectionViewLayoutInspector alloc] init];
_collectionView = [[ASCollectionView alloc] initWithFrame:CGRectZero collectionViewLayout:layout asyncDataFetching:YES];
_collectionView = [[ASCollectionView alloc] initWithFrame:CGRectZero collectionViewLayout:layout];
_collectionView.asyncDataSource = self;
_collectionView.asyncDelegate = self;
_collectionView.layoutInspector = _layoutInspector;