Add constrainedSizeForNodeAtIndexPath to ASPagerNodeDataSource

This commit is contained in:
Huy Nguyen
2016-02-11 10:47:27 -08:00
parent 5cccc0f432
commit 3e56a327c7
2 changed files with 20 additions and 1 deletions

View File

@@ -50,6 +50,17 @@
*/
- (ASCellNodeBlock)pagerNode:(ASPagerNode *)pagerNode nodeBlockAtIndex:(NSInteger)index;
/**
* Provides the constrained size range for measuring the node at the index path.
*
* @param collectionView The sender.
*
* @param indexPath The index path of the node.
*
* @returns A constrained size range for layout the node at this index path.
*/
- (ASSizeRange)pagerNode:(ASPagerNode *)pagerNode constrainedSizeForNodeAtIndexPath:(NSIndexPath *)indexPath;
@end
@interface ASPagerNode : ASCollectionNode