Use _ASCollectionReusableView inside ASIGListSupplementaryViewSourceMethods (#40)

This commit is contained in:
Phil Larson
2017-04-19 13:26:35 -07:00
committed by Garrett Moon
parent ed5a13976b
commit dca67c3d49

View File

@@ -13,6 +13,8 @@
#import "AsyncDisplayKit+IGListKitMethods.h"
#import <AsyncDisplayKit/ASAssert.h>
#import <AsyncDisplayKit/_ASCollectionViewCell.h>
#import <AsyncDisplayKit/_ASCollectionReusableView.h>
@implementation ASIGListSectionControllerMethods
@@ -35,7 +37,7 @@
atIndex:(NSInteger)index
sectionController:(IGListSectionController<IGListSectionType> *)sectionController
{
return [sectionController.collectionContext dequeueReusableSupplementaryViewOfKind:elementKind forSectionController:sectionController class:[UICollectionReusableView class] atIndex:index];
return [sectionController.collectionContext dequeueReusableSupplementaryViewOfKind:elementKind forSectionController:sectionController class:[_ASCollectionReusableView class] atIndex:index];
}
+ (CGSize)sizeForSupplementaryViewOfKind:(NSString *)elementKind atIndex:(NSInteger)index