uibutton - cocos2d scene retaining issue -


there scene in application has 2 labels , menu item. when load scene using replacescene method stays 3-4 seconds , gets disappeared or released. want keep until cancel button pressed. how can it? code is:

@implementation mylayer  + (id)myscene {      ccscene *ascene = [ccscene node];     mylayer *mylayer = [mylayer node];     [ascene addchild:mylayer];      return ascene;   } - (id) init {      if (self = [super init]) {            //labels , menu here         }     return self; } 

and calling scene this:

[[ccdirector shareddirector] replacescene: [mylayer myscene]]; 

maybe problem it's first scene. should use runwithscene method of ccdirector.


Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -