From 4f1d7ec0649db9f4320e02fc2d606e4ef78af44d Mon Sep 17 00:00:00 2001 From: Michael Schneider Date: Wed, 23 Nov 2016 15:50:26 -0800 Subject: [PATCH] Never access the view property of the node in init --- examples/Kittens/Sample/ViewController.m | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/examples/Kittens/Sample/ViewController.m b/examples/Kittens/Sample/ViewController.m index 6b2e4b5058..63a662327a 100644 --- a/examples/Kittens/Sample/ViewController.m +++ b/examples/Kittens/Sample/ViewController.m @@ -57,8 +57,6 @@ static const NSInteger kMaxLitterSize = 100; // max number of kitten cell if (!(self = [super initWithNode:_tableNode])) return nil; - - _tableNode.view.separatorStyle = UITableViewCellSeparatorStyleNone; // KittenNode has its own separator // populate our "data source" with some random kittens _kittenDataSource = [self createLitterWithSize:kLitterSize]; @@ -76,6 +74,7 @@ static const NSInteger kMaxLitterSize = 100; // max number of kitten cell { [super viewDidLoad]; + _tableNode.view.separatorStyle = UITableViewCellSeparatorStyleNone; // KittenNode has its own separator [self.node addSubnode:_tableNode]; }