mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2026-01-06 21:22:44 +00:00
[ASNodeController] Move ASNodeController to beta header (#2966)
* Move ASNodeController to beta header * Make it public * Change ASNodeController+Beta to .mm
This commit is contained in:
committed by
GitHub
parent
404795dc02
commit
d42dcfefc1
58
AsyncDisplayKit/ASNodeController+Beta.m
Normal file
58
AsyncDisplayKit/ASNodeController+Beta.m
Normal file
@@ -0,0 +1,58 @@
|
||||
//
|
||||
// ASNodeController.mm
|
||||
// AsyncDisplayKit
|
||||
//
|
||||
// Created by Hannah Troisi for Scott Goodson on 1/27/17.
|
||||
// Copyright © 2017 Facebook. All rights reserved.
|
||||
//
|
||||
|
||||
#import "ASNodeController+Beta.h"
|
||||
|
||||
#import "ASDisplayNode+FrameworkPrivate.h"
|
||||
|
||||
@implementation ASNodeController
|
||||
|
||||
@synthesize node = _node;
|
||||
|
||||
- (instancetype)init
|
||||
{
|
||||
self = [super init];
|
||||
if (self) {
|
||||
|
||||
}
|
||||
return self;
|
||||
}
|
||||
|
||||
- (void)loadNode
|
||||
{
|
||||
self.node = [[ASDisplayNode alloc] init];
|
||||
}
|
||||
|
||||
- (ASDisplayNode *)node
|
||||
{
|
||||
if (_node == nil) {
|
||||
[self loadNode];
|
||||
}
|
||||
return _node;
|
||||
}
|
||||
|
||||
-(void)setNode:(ASDisplayNode *)node
|
||||
{
|
||||
_node = node;
|
||||
_node.interfaceStateDelegate = self;
|
||||
}
|
||||
|
||||
// subclass overrides
|
||||
- (void)didEnterVisibleState {}
|
||||
- (void)didExitVisibleState {}
|
||||
|
||||
- (void)didEnterDisplayState {}
|
||||
- (void)didExitDisplayState {}
|
||||
|
||||
- (void)didEnterPreloadState {}
|
||||
- (void)didExitPreloadState {}
|
||||
|
||||
- (void)interfaceStateDidChange:(ASInterfaceState)newState
|
||||
fromState:(ASInterfaceState)oldState {}
|
||||
|
||||
@end
|
||||
Reference in New Issue
Block a user