更改xCode4中TabBar的类
我正在遵循 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您无需删除新控制器并将其拖入以下位置即可完成此操作:
要更改对象的类型:
在 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.
Expand the Tab Bar Controller object to see it's children, and select the object you wish to change
Then choose it's Class type from the right panel, Identity Inspector. (To display the Identity Inspector, go menu: View > Utilities > Identity Inspector).
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.
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).
我通过删除默认创建的选项卡并拖动具有我的应用程序中所需的类的新控制器找到了替代解决方案。
I found alternative solution by deleting the default created tabs and drag new controllers which have the classes I need in my app.