如何在Xcode 6中的Storyboard树中重新排列ViewControllers的顺序?

new*_*ios 4 xcode6

我想这是一个非常简单的问题,但我无法弄清楚如何管理订单或UIViewControllersDocument Outline(列表中ViewControllers)?

Jam*_*ter 6

顺序由场景节点下的XML(右键单击 - >打开为... - >源代码)中的场景顺序定义.

在此输入图像描述

请注意,在此XML上,首先是"Splash"场景,然后是两个导航控制器,这是正常情景板视图中显示的内容.

<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>
Run Code Online (Sandbox Code Playgroud)

在此输入图像描述

然而,在这里,我将场景节点移动到导航控制器下方,并相应地更新了故事板视图.

<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>
Run Code Online (Sandbox Code Playgroud)

在此输入图像描述