ASRangeController Class Reference
| Inherits from | ASDealloc2MainObject |
|---|---|
| Conforms to | ASDataControllerDelegate |
| Declared in | ASRangeController.h |
Overview
Working range controller.
Used internally by ASTableView and ASCollectionView. It is paired with ASDataController. It is designed to support custom scrolling containers as well. Observes the visible range, maintains “working ranges” to trigger network calls and rendering, and is responsible for driving asynchronous layout of cells. This includes cancelling those asynchronous operations as cells fall outside of the working ranges.
– visibleNodeIndexPathsDidChangeWithScrollDirection:
Notify the range controller that the visible range has been updated. This is the primary input call that drives updating the working ranges, and triggering their actions.
- (void)visibleNodeIndexPathsDidChangeWithScrollDirection:(ASScrollDirection)scrollDirectionParameters
scrollDirection |
The current scroll direction of the scroll view. |
|---|
Declared In
ASRangeController.h
– configureContentView:forCellNode:
Add the sized node for indexPath as a subview of contentView.
- (void)configureContentView:(UIView *)contentView forCellNode:(ASCellNode *)nodeParameters
contentView |
UIView to add a (sized) node’s view to. |
|---|---|
node |
The ASCellNode to be added. |
Declared In
ASRangeController.h
delegate
Delegate and ultimate data source. Must not be nil.
@property (nonatomic, weak) id<ASRangeControllerDelegate> delegateDeclared In
ASRangeController.h