如果我的游戏视图是 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: