mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 06:35:51 +00:00
Add implementation of nodeForPageAtIndex:
This commit is contained in:
@@ -98,6 +98,11 @@
|
|||||||
[self.view scrollToItemAtIndexPath:indexPath atScrollPosition:UICollectionViewScrollPositionLeft animated:animated];
|
[self.view scrollToItemAtIndexPath:indexPath atScrollPosition:UICollectionViewScrollPositionLeft animated:animated];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
- (ASCellNode *)nodeForPageAtIndex:(NSInteger)index
|
||||||
|
{
|
||||||
|
return [self.view nodeForItemAtIndexPath:[NSIndexPath indexPathForItem:index inSection:0]];
|
||||||
|
}
|
||||||
|
|
||||||
#pragma mark - ASCollectionViewDataSource
|
#pragma mark - ASCollectionViewDataSource
|
||||||
|
|
||||||
- (ASCellNodeBlock)collectionView:(ASCollectionView *)collectionView nodeBlockForItemAtIndexPath:(NSIndexPath *)indexPath
|
- (ASCellNodeBlock)collectionView:(ASCollectionView *)collectionView nodeBlockForItemAtIndexPath:(NSIndexPath *)indexPath
|
||||||
|
|||||||
Reference in New Issue
Block a user