mirror of
https://github.com/HackPlan/AsyncDisplayKit.git
synced 2026-05-10 04:33:55 +08:00
Support editing in table view and collection view
This commit is contained in:
@@ -9,21 +9,12 @@
|
||||
#import "ASCellNode.h"
|
||||
|
||||
#import "ASDisplayNode+Subclasses.h"
|
||||
#import "ASRangeControllerInternal.h"
|
||||
#import "ASTextNode.h"
|
||||
|
||||
|
||||
#pragma mark -
|
||||
#pragma mark ASCellNode
|
||||
|
||||
@interface ASCellNode () {
|
||||
// used by ASRangeController machinery
|
||||
NSIndexPath *_asyncdisplaykit_indexPath;
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
|
||||
@implementation ASCellNode
|
||||
|
||||
- (instancetype)init
|
||||
@@ -43,20 +34,6 @@
|
||||
ASDisplayNodeAssert(!layerBacked, @"ASCellNode does not support layer-backing.");
|
||||
}
|
||||
|
||||
// TODO consider making this property an associated object in ASRangeController.mm
|
||||
- (NSIndexPath *)asyncdisplaykit_indexPath
|
||||
{
|
||||
return _asyncdisplaykit_indexPath;
|
||||
}
|
||||
|
||||
- (void)setAsyncdisplaykit_indexPath:(NSIndexPath *)asyncdisplaykit_indexPath
|
||||
{
|
||||
if (_asyncdisplaykit_indexPath == asyncdisplaykit_indexPath)
|
||||
return;
|
||||
|
||||
_asyncdisplaykit_indexPath = [asyncdisplaykit_indexPath copy];
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user