mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-17 03:40:18 +00:00
Never access the view property of the node in init
This commit is contained in:
parent
0f620f458d
commit
4f1d7ec064
@ -58,8 +58,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];
|
||||||
_blurbNodeIndexPath = [NSIndexPath indexPathForItem:0 inSection:0];
|
_blurbNodeIndexPath = [NSIndexPath indexPathForItem:0 inSection:0];
|
||||||
@ -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