GKMatchmakerViewController不处理触摸

时间:2012-10-25 11:04:24

标签: objective-c cocos2d-iphone game-center gamekit gkmatchmaker

我正在显示这个modalView,它不处理触摸。我正在使用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

1 个答案:

答案 0 :(得分:0)

我已将cocos2d更改为更新版本,并未检查更改内容,或者我应该在appDelegate中重构什么。现在它有效。