forked from facebookarchive/AsyncDisplayKit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathASNodeController.mm
More file actions
57 lines (44 loc) · 986 Bytes
/
ASNodeController.mm
File metadata and controls
57 lines (44 loc) · 986 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
//
// ASNodeController.mm
// AsyncDisplayKit
//
// Created by Hannah Troisi for Scott Goodson on 1/27/17.
// Copyright © 2017 Facebook. All rights reserved.
//
#import "ASNodeController.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