0

我正在展示这个 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
4

1 回答 1

0

我已将 cocos2d 更改为较新的版本,并没有检查更改了什么,或者我应该在 appDelegate 中重构什么。现在它起作用了。

于 2012-12-19T11:49:21.840 回答