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 .