Implement node-backing for ASTableView and ASCollectionView, with a strong back-pointer in these cases.

This commit is contained in:
Scott Goodson
2015-12-26 23:04:16 -08:00
parent 02ab9e230f
commit 44feece701
12 changed files with 124 additions and 62 deletions

View File

@@ -19,10 +19,16 @@ NS_ASSUME_NONNULL_BEGIN
@protocol ASTableDelegate;
/**
* Node-based table view.
* Asynchronous UITableView with Intelligent Preloading capabilities.
*
* ASTableView is a version of UITableView that uses nodes -- specifically, ASCellNode subclasses -- with asynchronous
* pre-rendering instead of synchronously loading UITableViewCells.
* ASTableNode is recommended over ASTableView. This class is provided for adoption convenience.
*
* ASTableView is a true subclass of UITableView, meaning it is pointer-compatible with code that
* currently uses UITableView
*
* The main difference is that asyncDataSource expects -nodeForRowAtIndexPath, an ASCellNode, and
* the heightForRowAtIndexPath: method is eliminated (as are the performance problems caused by it).
* This is made possible because ASCellNodes can calculate their own size, and preload ahead of time.
*/
@interface ASTableView : UITableView