[ASPagerNode] New API tweaks. Support setting delegate + dataSource on ASCollectionNode and ASTableNode without triggering view creation.

This commit is contained in:
Scott Goodson
2015-12-24 17:06:57 -08:00
parent 985e47a7b7
commit 27c151095b
11 changed files with 230 additions and 39 deletions

View File

@@ -280,6 +280,8 @@
/**
* This is a node-based UITableViewDataSource.
*/
@protocol ASTableDataSource <ASTableViewDataSource>
@end
@protocol ASTableViewDataSource <ASCommonTableViewDataSource, NSObject>
/**
@@ -324,6 +326,8 @@
* Note that -tableView:heightForRowAtIndexPath: has been removed; instead, your custom ASCellNode subclasses are
* responsible for deciding their preferred onscreen height in -calculateSizeThatFits:.
*/
@protocol ASTableDelegate <ASTableViewDelegate>
@end
@protocol ASTableViewDelegate <ASCommonTableViewDelegate, NSObject>
@optional