如何在xcode 4.5中的初始视图的tabbar控制器中重新排序segues? [英] How to re-order segues in initial view's tabbar controller in xcode 4.5?

查看:79
本文介绍了如何在xcode 4.5中的初始视图的tabbar控制器中重新排序segues?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何重新排序初始视图的tabbar控制器元素,而不必删除所有segue并按所需顺序手动重新连接?有没有办法在它们被连接后改变它们的顺序?

How do I reorder the initial view's tabbar controller elements without having to delete all the segues and re connect them manually in the desired order? Is there a way to change the order of these after they have been hooked up?

我能够通过在xcode 4.4中拖动它们来实现这一点,但该选项似乎在xcode 4.5中不可用。

I was able to do this by just dragging them around in xcode 4.4 but that option seems to be non available in xcode 4.5.

希望这可以在故事板模式中实现。但是如果它只能以编程方式实现,那也没关系,只需寻找任何正确的方法来实现这一点,而不必将它们全部删除并重新连接它们。

Hopefully, this is possible from within the storyboard mode. But if it's only possible programmatically, that's ok too, just looking for any proper way to accomplish this without having to delete them all and re hook them up.

例如,怎么会我将'Home'项移到第一个位置?

For example, how would I move the 'Home' item to first position?

推荐答案

每个视图中的位置与底栏上的位置相关联标签栏控制器。如果您重新排序该栏,则会重新排序您的观点。您可以通过拖放界面构建器对它们进行重新排序。

The positions in each view are associated with the positions on the bottom bar of the Tab Bar Controller. If you reorder that bar you will reorder your views. You can reorder them by drag and drop on your interface builder.

在你的例子中,只需在标签栏控制器中选择Home并将其拖到第一个位置。

In your example just select Home in your Tab Bar Controller and drag it to the first position.

如果你有拖拽问题尝试首先选择你的选项卡视图控制器或退出你的XCode并再次打开它(如@ thepumpkin1979和@Rick指出)。

If you have problems dragging and dropping try to select first your Tab View Controller or exit your XCode and open it again (like @thepumpkin1979 and @Rick pointed out).

这篇关于如何在xcode 4.5中的初始视图的tabbar控制器中重新排序segues?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆