Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Change the listing order of the view controllers in Xcode storyboard

I'm just starting my first application using storyboards. I'm using Xcode 4.5 and iOS 6 SDK. I want to know how to change the order in which the controllers are listed in the Document Outline (panel to the left of the storyboard).enter image description here

like image 913
Darren Avatar asked Sep 25 '12 14:09

Darren


People also ask

How do I move the view controller in storyboard?

You should drag the white bar above the View Controller (the bar that contains the First Responder). It works even on low zoom levels!

Is Xcode initial view controller?

In Xcode 6.2, there is no longer an "Is Initial View Controller" checkbox in the attributes inspector. Instead, you set the initial view controller by adding the Storyboard Entry Point found in the Object Library.


1 Answers

In Latest Xcode 13 you can manually reorder storyboard scenes. Just drag&drop in the left pane.

Old answer

In Xcode 11 you just open storyboard XML and move specific "scene" to proper place under "scenes" tag. And that's it. The order will correspond to Document outline.

like image 79
Viktor Kucera Avatar answered Sep 24 '22 18:09

Viktor Kucera