From 53bc126ae59bf3691bcb85be9e2978b93f7a7554 Mon Sep 17 00:00:00 2001 From: Levi McCallum Date: Fri, 1 Jul 2016 09:42:39 -0700 Subject: [PATCH] Add implementation of nodeForPageAtIndex: --- AsyncDisplayKit/ASPagerNode.m | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/AsyncDisplayKit/ASPagerNode.m b/AsyncDisplayKit/ASPagerNode.m index 2c6cd4b32e..c266ef18f3 100644 --- a/AsyncDisplayKit/ASPagerNode.m +++ b/AsyncDisplayKit/ASPagerNode.m @@ -98,6 +98,11 @@ [self.view scrollToItemAtIndexPath:indexPath atScrollPosition:UICollectionViewScrollPositionLeft animated:animated]; } +- (ASCellNode *)nodeForPageAtIndex:(NSInteger)index +{ + return [self.view nodeForItemAtIndexPath:[NSIndexPath indexPathForItem:index inSection:0]]; +} + #pragma mark - ASCollectionViewDataSource - (ASCellNodeBlock)collectionView:(ASCollectionView *)collectionView nodeBlockForItemAtIndexPath:(NSIndexPath *)indexPath