0

我正在顯示這個modalView,它不處理觸摸。我正在使用cocos2d-iphone。GKMatchmakerViewController不處理觸摸

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 
+0

你是如何實現觸摸處理代碼的? – LearnCocos2D

回答

0

我已將cocos2d更改爲新版本,並未檢查更改的內容,或者我應該在appDelegate中重構什麼內容。現在它可以工作。