Add implementation of nodeForPageAtIndex:

This commit is contained in:
Levi McCallum
2016-07-01 09:42:39 -07:00
committed by GitHub
parent b1ceab7a61
commit 53bc126ae5

View File

@@ -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