Note that there are some explanatory texts on larger screens.

plurals
  1. POPushing the same view controller instance more than once is not supported in cocos2d?
    primarykey
    data
    text
    <p>hello friends i am use cocos2d and viewcontroller in my project. first load my apps at that time first cocos2d scene load successfully . after i am push that scene to viewcontroller its also working fine.but after i push again to scene at that time i have error as Pushing the same view controller instance more than once is not supported.i try more but not get anything solution.</p> <p>my code as below</p> <p>director_ that push app to scene</p> <pre><code>- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { navController_ = [[MyNavigationController alloc] initWithRootViewController:director_]; } </code></pre> <p>After i push scene to viewconreoller as below</p> <pre><code>-(void)SceneToController { ViewController *yourViewController = [[ViewController alloc]initWithNibName:@"ViewController" bundle:nil]; [[CCDirector sharedDirector].navigationController pushViewController:yourViewController animated:YES]; } </code></pre> <p>i successfully come to viewcontroller</p> <p>after i push to viewController to scene as below code</p> <pre><code>-(void)ViewToScene { AppController *app = (AppController*) [[UIApplication sharedApplication] delegate]; director_ = (CCDirectorIOS*) [CCDirector sharedDirector]; [director_ pushScene:[NewLayer scene]]; [[app navController] pushViewController:director_ animated:YES]; } </code></pre> <p>But it got error as Pushing the same view controller instance more than once is not supported. plese help me about it</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload