سؤال

I am showing this modalView and it does not handle touches. I am using cocos2d-iphone.

mControllerView= [[UIViewController alloc] init];
//mControllerView.view = [[CCDirector sharedDirector] openGLView];  
//this was the old method, it worked, but since ios6 it crashes

[[[CCDirector sharedDirector] openGLView] addSubview:mControllerView.view];

theClass = [[TheClass alloc] init: mControllerView]; 
// this shows the     GKMatchmakerViewController inside mControllerView
هل كانت مفيدة؟

المحلول

I have changed cocos2d to a newer version, and didn't check what changed, or what should I refactor in the appDelegate. Now it works.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top