mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-16 19:30:29 +00:00
Never access the view property of the node in init
This commit is contained in:
parent
0f620f458d
commit
4f1d7ec064
@ -57,8 +57,6 @@ static const NSInteger kMaxLitterSize = 100; // max number of kitten cell
|
|||||||
|
|
||||||
if (!(self = [super initWithNode:_tableNode]))
|
if (!(self = [super initWithNode:_tableNode]))
|
||||||
return nil;
|
return nil;
|
||||||
|
|
||||||
_tableNode.view.separatorStyle = UITableViewCellSeparatorStyleNone; // KittenNode has its own separator
|
|
||||||
|
|
||||||
// populate our "data source" with some random kittens
|
// populate our "data source" with some random kittens
|
||||||
_kittenDataSource = [self createLitterWithSize:kLitterSize];
|
_kittenDataSource = [self createLitterWithSize:kLitterSize];
|
||||||
@ -76,6 +74,7 @@ static const NSInteger kMaxLitterSize = 100; // max number of kitten cell
|
|||||||
{
|
{
|
||||||
[super viewDidLoad];
|
[super viewDidLoad];
|
||||||
|
|
||||||
|
_tableNode.view.separatorStyle = UITableViewCellSeparatorStyleNone; // KittenNode has its own separator
|
||||||
[self.node addSubnode:_tableNode];
|
[self.node addSubnode:_tableNode];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user