Update data source protocols to make synchronous node creation api methods optional.

This commit is contained in:
Rahul Malik
2016-02-09 22:47:43 -08:00
parent cae47e23e1
commit 3e5daf4ccd
9 changed files with 58 additions and 52 deletions

View File

@@ -315,6 +315,8 @@ NS_ASSUME_NONNULL_BEGIN
*/
@protocol ASTableDataSource <ASCommonTableViewDataSource, NSObject>
@optional
/**
* Similar to -tableView:cellForRowAtIndexPath:.
*
@@ -327,11 +329,10 @@ NS_ASSUME_NONNULL_BEGIN
*/
- (ASCellNode *)tableView:(ASTableView *)tableView nodeForRowAtIndexPath:(NSIndexPath *)indexPath;
@optional
/**
* Similar to -tableView:nodeForRowAtIndexPath:.
*
* Similar to -tableView:nodeForRowAtIndexPath:
* This method takes precedence over tableView:nodeForRowAtIndexPath: if implemented.
* @param tableView The sender.
*
* @param indexPath The index path of the requested node.