【发布时间】:2013-01-25 00:58:23
【问题描述】:
如果我的游戏视图是 GLKViewController,那么创建游戏菜单的最佳方式是什么?
如果我使用 XCode (iOS >= 5) 中可用的 OpenGL 游戏模板创建一个测试应用程序,我可以添加一个导航控制器,创建一个 UIViewController 作为游戏菜单并添加一个按钮 New Game 例如转到我的 GLKViewController,如果您按照这些步骤操作,运行应用程序,单击 New Game 按钮,看到两个旋转的立方体并单击 Back,您将看到相同的屏幕,需要再次单击返回才能返回 Game Menu。在此过程中记录以下错误:
2013-01-24 22:35:18.781 test1[640:907] nested push animation can result in corrupted navigation bar
2013-01-24 22:35:19.221 test1[640:907] Finishing up a navigation transition in an unexpected state. Navigation Bar subview tree might get corrupted.
2013-01-24 22:35:19.226 test1[640:907] Unbalanced calls to begin/end appearance transitions for <TestViewController: 0x1d836880>.
2013-01-24 22:35:33.689 test1[640:907] nested push animation can result in corrupted navigation bar
2013-01-24 22:35:34.079 test1[640:907] Finishing up a navigation transition in an unexpected state. Navigation Bar subview tree might get corrupted.
2013-01-24 22:35:34.083 test1[640:907] Unbalanced calls to begin/end appearance transitions for <TestViewController:
【问题讨论】: