更改xCode4中TabBar的类

发布于 2024-11-14 08:32:53 字数 255 浏览 2 评论 0原文

我正在遵循 xCode3 中制作的以下教程

http://www.youtube.com/watch ?v=LBnPfAtswgw

当我使用 xCode4 时,我遵循了所有内容,直到她将第一个选项卡的类更改为 UINavigationController 的部分,因为我没有该选项!请帮忙。

问候, 阿里

I'm following the following tutorial that was made in xCode3

http://www.youtube.com/watch?v=LBnPfAtswgw

As I'm using xCode4, I followed everything until the part where she changed the class of the first tab to UINavigationController as I didn't got that option! Please help.

Regards,
Ali

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

十级心震 2024-11-21 08:32:53

您无需删除新控制器并将其拖入以下位置即可完成此操作:

要更改对象的类型:

  • 在 Xcode 4 中,打开您的 .xib 文件。如果界面生成器对象查看器未展开,请通过将其右边框拖出或单击底部的小“播放”按钮来展开。
    在此处输入图像描述

  • 展开选项卡栏控制器对象以查看其子对象,然后选择要更改的对象
    在此处输入图像描述

  • 然后从右侧面板 Identity Inspector 中选择其类类型。 (要显示身份检查器,请转到菜单:查看 > 实用程序 > 身份检查器)。

    在此处输入图像描述

  • 您可以使用 Xcode 右上角的按钮打开和关闭右侧面板。您可以通过单击实用程序按钮或通过“查看”>“查看”来访问各种实用程序。公用事业。
    在此处输入图像描述

要重新排列选项卡栏控制器中的选项卡,请将它们拖放到界面构建器对象查看器中(这将也改变它们在实际标签栏中的位置)。

在此处输入图像描述

You can do it without having to delete and drag new controllers in:

To change the type of an object:

  • From within Xcode 4, open your .xib file. If the interface builder object viewer isn't expanded, make it so by dragging it's right boarder out, or clicking that little 'play' button at the bottom.
    enter image description here

  • Expand the Tab Bar Controller object to see it's children, and select the object you wish to change
    enter image description here

  • Then choose it's Class type from the right panel, Identity Inspector. (To display the Identity Inspector, go menu: View > Utilities > Identity Inspector).

    enter image description here

  • You can open and close that right panel using the buttons on the top right of Xcode. You can get to the various utilities by clicking the utility buttons, or through View > Utilities.
    enter image description here

To rearrange tabs in the Tab Bar Controller, drag and drop them in the interface builder object viewer (this will change their position in the actual tab bar too).

enter image description here

剩余の解释 2024-11-21 08:32:53

我通过删除默认创建的选项卡并拖动具有我的应用程序中所需的类的新控制器找到了替代解决方案。

I found alternative solution by deleting the default created tabs and drag new controllers which have the classes I need in my app.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文