How to reorder the order of ViewControllers in a storyboard tree in Xcode 6?

I assume this is a very simple question, but I can’t figure out how to manage the order or UIViewControllersin Document Outline(list ViewControllers)?

+4
source share
1 answer

The order is determined by the order of the scenes in XML (right click → open as .. → source code) under the node scenes.

enter image description here

Note that on this XML, the “Splash” scene starts first, followed by two navigation controllers, and this is what is shown on a regular storyboard.

<scenes>
        <!--Splash-->
        <scene sceneID="tne-QT-ifu">
            <objects>
                <!-- other data -->
            </objects>
            <point key="canvasLocation" x="-876" y="-1364"/>
        </scene>
        <!--Navigation Controller-->
        <scene sceneID="ane-QT-ifu">
            <objects>
                <!-- other data -->
            </objects>
            <point key="canvasLocation" x="-876" y="-1364"/>
        </scene>

        <!--Navigation Controller-->
        <scene sceneID="bne-QT-ifu">
            <objects>
                <!-- other data -->
            </objects>
            <point key="canvasLocation" x="-876" y="-1364"/>
        </scene>
</scenes>

enter image description here

Here, however, I moved the node scene for a splash under the navigation controllers, and it updated the storyboard view accordingly.

<scenes>
        <!--Navigation Controller-->
        <scene sceneID="ane-QT-ifu">
            <objects>
                <!-- other data -->
            </objects>
            <point key="canvasLocation" x="-876" y="-1364"/>
        </scene>

        <!--Navigation Controller-->
        <scene sceneID="bne-QT-ifu">
            <objects>
                <!-- other data -->
            </objects>
            <point key="canvasLocation" x="-876" y="-1364"/>
        </scene>
        <!--Splash-->
        <scene sceneID="tne-QT-ifu">
            <objects>
                <!-- other data -->
            </objects>
            <point key="canvasLocation" x="-876" y="-1364"/>
        </scene>
</scenes>

enter image description here

+6
source

All Articles