mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 06:35:51 +00:00
Use ASCellNodes for supplementary nodes
This commit is contained in:
@@ -48,7 +48,7 @@
|
||||
|
||||
#pragma mark - View manipulation
|
||||
|
||||
- (void)moveNode:(ASDisplayNode *)node toView:(UIView *)view
|
||||
- (void)moveCellNode:(ASCellNode *)node toView:(UIView *)view
|
||||
{
|
||||
ASDisplayNodeAssertMainThread();
|
||||
ASDisplayNodeAssert(node, @"Cannot move a nil node to a view");
|
||||
@@ -158,7 +158,7 @@
|
||||
return rangeType == ASLayoutRangeTypeRender;
|
||||
}
|
||||
|
||||
- (void)configureContentView:(UIView *)contentView forNode:(ASDisplayNode *)node
|
||||
- (void)configureContentView:(UIView *)contentView forCellNode:(ASCellNode *)node
|
||||
{
|
||||
if (node.view.superview == contentView) {
|
||||
// this content view is already correctly configured
|
||||
@@ -170,7 +170,7 @@
|
||||
[view removeFromSuperview];
|
||||
}
|
||||
|
||||
[self moveNode:node toView:contentView];
|
||||
[self moveCellNode:node toView:contentView];
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user