In my app iPhone app I have a Tab Bar Controller with 4 relationships to 4 different Table View Controllers. Is there a way to rearrange the order of the relationship in the Sto
You can make sure that the Tab Controller Dock option in your Main storyboard is set to "First Responder", that solved it for me!
I was not able to drag&drop with XCode 4.6 (with any of mentioned cobination). I have solved it opening the storybord in "Source Code" mode, locating the tabBarController and rearranging the seque tag.
I know the OP is using Xcode interface builder and asking for a graphical way to do this, but for developers working with Xamarin iOS Designer, here is a workaround that I use.
Open the .storyboard file in a text editor or using Xcode, right click on the storyboard item in Project Navigator and select Open As Source Code. In the storyboard XML locate the <tabBarController ...>
node. Then I rearrange the order of the segues in the <connections>
section:
<connections>
<segue destination="274" kind="relationship" relationship="viewControllers" id="286"/>
<segue id="943" destination="910" kind="relationship" relationship="viewControllers"/>
<segue destination="147" kind="relationship" relationship="viewControllers" id="159"/>
</connections>
Search for the destination=
attribute value in the XML to determine which view controller the segue element is pointing at.
To add on to the drag and drop method provided by everyone. I posted this as an answer so that I can include images. Tried on Xcode 7.3
If you are using custom tab bar item
, you can still drag and drop to reorder even though the Tab Bar Controller
scene shows a grey bar, the bar item is still there. This is especially inconspicuous when all your bar item are custom items
Remove all viewcontrollers sequge with tabbar. You need first viewcontroller first segue then another viewcontroller connect with tabbar.
No restart xcode & no clear source code file in change require.
I had the same issue after adding a Navigation Controller.
Fix: close the storyboard (Ctrl+Cmd+W) and do a clean build folder (Option+Cmd+Shift+K) and a regular clean (Cmd+Shift+K). Reopen the storyboard and you'll be able to drag the items again.