This repository has been archived by the owner on Feb 2, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
[ASCollectionView] Pass the Cell Node Through in willDisplayNode: Delegate Method #2282
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -383,17 +383,18 @@ NS_ASSUME_NONNULL_BEGIN | |
@optional | ||
|
||
/** | ||
* Informs the delegate that the table view will add the node | ||
* Informs the delegate that the table view will add the given node | ||
* at the given index path to the view hierarchy. | ||
* | ||
* @param tableView The sender. | ||
* @param node The node that will be displayed. | ||
* @param indexPath The index path of the row that will be displayed. | ||
* | ||
* @warning AsyncDisplayKit processes table view edits asynchronously. The index path | ||
* passed into this method may not correspond to the same item in your data source | ||
* if your data source has been updated since the last edit was processed. | ||
*/ | ||
- (void)tableView:(ASTableView *)tableView willDisplayNodeForRowAtIndexPath:(NSIndexPath *)indexPath; | ||
- (void)tableView:(ASTableView *)tableView willDisplayNode:(ASCellNode *)node forRowAtIndexPath:(NSIndexPath *)indexPath; | ||
|
||
/** | ||
* Informs the delegate that the table view did remove the provided node from the view hierarchy. | ||
|
@@ -403,6 +404,10 @@ NS_ASSUME_NONNULL_BEGIN | |
* @param tableView The sender. | ||
* @param node The node which was removed from the view hierarchy. | ||
* @param indexPath The index path at which the node was located before the removal. | ||
* | ||
* @warning AsyncDisplayKit processes table view edits asynchronously. The index path | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I wish there was something we could do to really emphasize this… |
||
* passed into this method may not correspond to the same item in your data source | ||
* if your data source has been updated since the last edit was processed. | ||
*/ | ||
- (void)tableView:(ASTableView *)tableView didEndDisplayingNode:(ASCellNode *)node forRowAtIndexPath:(NSIndexPath *)indexPath; | ||
|
||
|
@@ -457,6 +462,21 @@ NS_ASSUME_NONNULL_BEGIN | |
*/ | ||
- (void)tableView:(ASTableView *)tableView didEndDisplayingNodeForRowAtIndexPath:(NSIndexPath *)indexPath ASDISPLAYNODE_DEPRECATED; | ||
|
||
/** | ||
* Informs the delegate that the table view will add the node | ||
* at the given index path to the view hierarchy. | ||
* | ||
* @param tableView The sender. | ||
* @param indexPath The index path of the row that will be displayed. | ||
* | ||
* @warning AsyncDisplayKit processes table view edits asynchronously. The index path | ||
* passed into this method may not correspond to the same item in your data source | ||
* if your data source has been updated since the last edit was processed. | ||
* | ||
* This method is deprecated. Use @c tableView:willDisplayNode:forRowAtIndexPath: instead. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What is @c ? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That means "print the next word in monospaced font" http://blog.dadabeatnik.com/2013/09/25/comment-docs-in-xcode-5/ There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Oh, huh, neat! |
||
*/ | ||
- (void)tableView:(ASTableView *)tableView willDisplayNodeForRowAtIndexPath:(NSIndexPath *)indexPath ASDISPLAYNODE_DEPRECATED; | ||
|
||
@end | ||
|
||
@protocol ASTableViewDelegate <ASTableDelegate> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is @c here?