问题描述
所以我不知道该怎么称呼它,但它在Xcode的Storyboard Editor左侧的那个栏显示了所有不同的场景。我喜欢使用故事板,但我最大的宠儿就是场景以完全随机的方式组织在该列表中。每次我向故事板添加一个新的视图控制器时,它都会被插入到列表中看似随机的位置。场景清单附近没有附近的两个景点。
So I'm not sure what to call it, but its that bar on the left in Storyboard Editor in Xcode that displays all of the different scenes. I love using storyboards, but my biggest pet peeve with them is that the scenes are organized in that list in an utterly random fashion. Every time I add a new view controller to the storyboard it gets inserted into a seemingly random place on the list. Two nearby views are not at all nearby in the scene listing.
所以我的问题是:是否可以重新排序该视图中的场景,或者强制某种排序?
So my question is this: Is it possible to reorder the scenes in that view, or to force some kind of sorting?
推荐答案
您可以修改故事板的xml版本(打开为 - >源代码)。不性感但有效
You can modify the xml version ( "Open As"->"Source Code") of the Storyboard. Not sexy but works
这篇关于在Xcode Interface Builder中排序场景的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!