Sprite Kit Game - storyboard yes or no? -
i making sprite kit game several scenes including logo screen, main menu, other menus , 2 playing scenes. should use storyboard? did pure code each scene, have problems releasing scenes after transitions. using storyboard fix these problems, or not?
thanks answers.
i'd go storyboards.
when need switch viewcontroller (by segue), remove skview
view hierarchy. release skscene
:
- (void)prepareforsegue:(uistoryboardsegue *)segue sender:(id)sender { [self.skview removefromsuperview]; self.skview = nil; }
note in case you'll need manually add skview
view hierarchy every time viewcontroller appear:
if (!self.skview.window) { [self.view addsubview:self.skview]; }
Comments
Post a Comment