Xcode4:在 xcode4-interfacebuilder 中更改 tabbar-properties 的位置
xcode 4 有一个直接包含的界面生成器,无论如何我想更改 tabbarcontroller 的项目。我的主题是:重新排列、添加新内容、更改视图类型,例如导航
这是 Xcode4 beta 中我想要的(InterfaceBuilder V3.2 的屏幕截图)
欢呼 end
编辑:我发现的唯一解决方案是复制现有项目并更改属性,但我仍然对解决方案感兴趣,因为这只是一个解决方法。
xcode 4 has a directly included interface builder, anyhow i want to change items of a tabbarcontroller. my subjects are: rearrange, add new, change type of view e.g. nagvigation
Here is what i want (Screenshot from InterfaceBuilder V3.2) in Xcode4 beta
cheers endo
EDIT: The only solution I found is to copy an existing Item and change the properties, but i'm still interested in a solution since this is just a workarround.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
我意识到这个问题有点老了,但这可能会有所帮助:
要更改对象的类型:
从 Xcode 4 中,打开您的 .xib 文件。如果界面生成器对象查看器未展开,请通过将其右边框拖出或单击底部的小“播放”按钮来展开。
展开选项卡栏控制器对象以查看其子对象,然后选择要更改的对象
然后从右侧面板 Identity Inspector 中选择其类类型。 (要显示身份检查器,请转到菜单:查看 > 实用程序 > 身份检查器)。
您可以使用 Xcode 右上角的按钮打开和关闭右侧面板。您可以通过单击实用程序按钮或通过“查看”>“查看”来访问各种实用程序。公用事业。
要向选项卡栏控制器添加更多选项卡,请从对象菜单中拖动一个新控制器(位于下方)右面板)。
要重新排列选项卡栏控制器中的选项卡,请将它们拖放到界面构建器对象查看器中(这将也改变它们在实际标签栏中的位置)。
I realize this question is a little old, but this might help:
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 add more tabs to the Tab Bar Controller, drag a new controller from the objects menu (in the lower right panel).
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).
我一直在寻找同样的东西,但找不到。我偶然发现了这一点:
http://www.jennandlucien.net/lucien/2011/03/13/xcode-4-tip-on-changing-a-tab-to-a- different-type -of-controller/
希望它会对某人有所帮助。
i was looking for the same thing, but could not find it. I stumbled upon this:
http://www.jennandlucien.net/lucien/2011/03/13/xcode-4-tip-on-changing-a-tab-to-a-different-type-of-controller/
Hopefully it will help someone.
Xcode 4 的 Interface Builder 中没有类似的功能。这就是我写上述博文的原因。我发现在 Xcode 4 中复制该用户界面的最简单方法是:
这有点有点痛,但不会花太长时间。
There isn't an equivalent in Xcode 4's Interface Builder. That's why I wrote the above blog post. The easiest way I've found to do replicate that user interface in Xcode 4 is:
It's a bit of a pain, but doesn't take too long.
我通过执行以下操作解决了问题
拖放选项卡栏控制器(如果已有任何视图,则删除该控制器,否则IB将不允许您将选项卡栏控制器放置在另一个视图上)。
通过从 Xcode 窗口右下角的“对象”下拖放“视图控制器”来添加其他选项卡栏,这将在您的视图中创建一个视图控制器和一个选项卡栏项目。
并确保将其放置在选项卡栏上。
界面生成器自动排列选项卡栏。
选择每个选项卡栏和转到属性检查器并更改标题和 nib 文件名。
谢谢。
I solved the problem by doing the following things
Drag and drop a Tab Bar Controller(delete if there is any view already there, otherwise IB won't allow you to place a tab bar controller on another view).
Add the other tab bars by Drag an drop a 'View Controller' from the right bottom of the Xcode window under name Objects, this will create a view controller and a tab bar item in your view.
And make sure to place it on the Tab Bar.
the interface builder automatically arrange the tab bars.
Select each tab bar and goto attribute inspector and change the title and nib file name.
Thanks.