Sorting Scenes in Xcode Interface Builder

*爱你&永不变心* 提交于 2019-12-10 02:11:58

问题


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?


回答1:


You can modify the xml version ( "Open As"->"Source Code") of the Storyboard. Not sexy but works



来源:https://stackoverflow.com/questions/13710641/sorting-scenes-in-xcode-interface-builder

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!