mirror of
https://github.com/HackPlan/AsyncDisplayKit.git
synced 2026-05-18 01:02:13 +08:00
Fix methods from ASCollectionDelegate are not passed through to pager delegate (#2074)
This commit is contained in:
committed by
Adlai Holler
parent
ee87695fc8
commit
067e4998e2
@@ -63,7 +63,8 @@
|
||||
[super didLoad];
|
||||
|
||||
ASCollectionView *cv = self.view;
|
||||
cv.asyncDelegate = self;
|
||||
cv.asyncDataSource = _proxyDataSource ?: self;
|
||||
cv.asyncDelegate = _proxyDelegate ?: self;
|
||||
#if TARGET_OS_IOS
|
||||
cv.pagingEnabled = YES;
|
||||
cv.scrollsToTop = NO;
|
||||
|
||||
@@ -91,8 +91,7 @@
|
||||
selector == @selector(collectionView:nodeForItemAtIndexPath:) ||
|
||||
selector == @selector(collectionView:nodeBlockForItemAtIndexPath:) ||
|
||||
selector == @selector(collectionView:numberOfItemsInSection:) ||
|
||||
selector == @selector(collectionView:constrainedSizeForNodeAtIndexPath:) ||
|
||||
selector == @selector(scrollViewWillEndDragging:withVelocity:targetContentOffset:)
|
||||
selector == @selector(collectionView:constrainedSizeForNodeAtIndexPath:)
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user