cocos2d-iphone我現在在sceneA使用pushScene函數跳轉到sceneB,現在在使用popScene跳轉到A,要實現什么函數才能完成回調呢?
1 回答

千巷貓影
TA貢獻1829條經驗 獲得超7個贊
From A to B:
[[[CCDirector sharedDirector] pushScene:[sceneB scene]]];
Pop back to A:
[[[CCDirector sharedDirector] popScene]];
Call popScene in the backToSceneA button's block or selector.
- 1 回答
- 0 關注
- 266 瀏覽
添加回答
舉報
0/150
提交
取消