iOS中的游戏菜单

时间:2013-01-24 11:42:58

标签: ios opengl-es

如果我的游戏视图是GLKViewController,创建游戏菜单的最佳方法是什么?

如果我使用XCode中提供的OpenGL游戏模板创建测试应用程序(iOS> = 5),我可以添加导航控制器,创建一个UIViewController作为游戏菜单,并添加一个按钮New Game,例如我的GLKViewController是一个segue,如果按照这些步骤运行应用程序,单击New Game按钮,看到两个立方体旋转并单击Back,您将看到相同的屏幕,需要再次单击返回以返回游戏菜单。在此过程中会记录以下错误:

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:

1 个答案:

答案 0 :(得分:0)

在ios中创建游戏菜单的一些参考。

1.Open Source Pop-Out Pie Style Menu iOS Control With A Nice Animation Effect 2.Pie Menus on iOS

这是一个很棒的菜单列表,请查看此网站:

iOS Open Source Facebook/Path liked Sidebar Menu implementation