xcode 4.2.1 - 故事板 - 使用模式从不同视图移动并使选项卡栏可见
在 xcode 故事板中,我创建了一个选项卡栏控制器,可转到 4 个不同的选项卡。其中一个选项卡是主菜单,与选项卡栏上的可用链接相同。当我使用选项卡栏移动到选项卡时,选项卡栏确实可见。但是当我使用主菜单链接时,它可以很好地适应不同的视图,但我丢失了选项卡栏。如何在不丢失选项卡栏的情况下从一个视图转到另一个视图。
我的项目中没有头文件,一切都是通过故事板完成的。
In xcode storyboard, I have created a Tab Bar Controller that goes to 4 different tabs. One of the tabs is the main menu that has the same links available at the Tab bar. When I use the tab bar to move to the tabs, I do have the tab bar visible. But when I use the main menu links it goes fine to the different views but I lose the tab bar. How can I go from view to other view without losing the tab bar.
I have no header files in my project everything is done through storyboard.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您必须为用作菜单的视图创建一个类实现文件,在其中您需要创建一个按下按钮时调用的函数。在这些函数中,您应该调用以下内容:
或
You have to create a class implementation file for the view that you are using as a menu, in it you need to create a function that is called when you press the buttons. In those functions, you should call the following:
or