我想这是一个非常简单的问题,但我无法弄清楚如何管理订单或UIViewControllers在Document Outline(列表中ViewControllers)?
顺序由场景节点下的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)

| 归档时间: |
|
| 查看次数: |
2774 次 |
| 最近记录: |