How to re-order segues in initial view's tabbar controller in xcode 4.5?

北城以北 提交于 2019-12-03 09:52:05

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.

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

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).

Just edit the xml file and it will work.

Click on your "storyboard" and click the most right of the 3 buttons in "Editor".

This will show up an xml file on the left which u can edit anyway you wish.

Inside that file you should see xml tag "tabBar", inside it is "items", inside this is "tabBarItem". All your tabBar items will be listed. You may cut and paste them in the order you wish.

I just did it now in Xcode 4.5.2.

Hope it also works for you too.

Ps. I am new to iOS so I can't use all the right Xcode names.

I think you can control+drag the tab item to reorder.

Drag and drop should work

You can drag the bar Item to the left to rearrange its position from the Storyboard.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!