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)init

Declared In

ASPagerNode.h

– initWithCollectionViewLayout:

Initializer with custom-configured flow layout properties.

- (instancetype)initWithCollectionViewLayout:(ASPagerFlowLayout *)flowLayout

Declared In

ASPagerNode.h

– setDataSource:

Data Source is required, and uses a different protocol from ASCollectionNode.

- (void)setDataSource:(id<ASPagerDataSource>)dataSource

Declared 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> delegate

Declared In

ASPagerNode.h

  view

The underlying ASCollectionView object.

@property (nonatomic, readonly) ASCollectionView *view

Declared In

ASPagerNode.h

  currentPageIndex

Returns the current page index

@property (nonatomic, assign, readonly) NSInteger currentPageIndex

Declared In

ASPagerNode.h

– scrollToPageAtIndex:animated:

Scroll the contents of the receiver to ensure that the page is visible

- (void)scrollToPageAtIndex:(NSInteger)index animated:(BOOL)animated

Declared In

ASPagerNode.h

– nodeForPageAtIndex:

Returns the node for the passed page index

- (ASCellNode *)nodeForPageAtIndex:(NSInteger)index

Declared In

ASPagerNode.h