ASPagerNode Class Reference
| Inherits from | ASCollectionNode : ASDisplayNode : ASDealloc2MainObject |
|---|---|
| Declared in | ASPagerNode.h |
– init
Configures a default horizontal, paging flow layout with 0 inter-item spacing.
- (instancetype)initDeclared In
ASPagerNode.h
– initWithCollectionViewLayout:
Initializer with custom-configured flow layout properties.
- (instancetype)initWithCollectionViewLayout:(ASPagerFlowLayout *)flowLayoutDeclared In
ASPagerNode.h
– setDataSource:
Data Source is required, and uses a different protocol from ASCollectionNode.
- (void)setDataSource:(id<ASPagerDataSource>)dataSourceDeclared In
ASPagerNode.h
delegate
Delegate is optional, and uses the same protocol as ASCollectionNode. This includes UIScrollViewDelegate as well as most methods from UICollectionViewDelegate, like willDisplay…
@property (nonatomic, weak) id<ASPagerDelegate> delegateDeclared In
ASPagerNode.h
view
The underlying ASCollectionView object.
@property (nonatomic, readonly) ASCollectionView *viewDeclared In
ASPagerNode.h
currentPageIndex
Returns the current page index
@property (nonatomic, assign, readonly) NSInteger currentPageIndexDeclared In
ASPagerNode.h
– scrollToPageAtIndex:animated:
Scroll the contents of the receiver to ensure that the page is visible
- (void)scrollToPageAtIndex:(NSInteger)index animated:(BOOL)animatedDeclared In
ASPagerNode.h
– nodeForPageAtIndex:
Returns the node for the passed page index
- (ASCellNode *)nodeForPageAtIndex:(NSInteger)indexDeclared In
ASPagerNode.h