mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 14:20:20 +00:00
Update data source protocols to make synchronous node creation api methods optional.
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user