Search code examples
xcodesortingstoryboarddocumentoutline

How sort storyboard's view controllers alphabetically by name or locate a VC in storyboard quickly?


When you open a storyboard, and expand the "Document Outline", by clicking the arrow in the bottom left hand corner, you get a list of View Controllers in the story board. You can also get this list by clicking on any view controller, and then, on the top, clicking and holding the second-last node.

Both lists of view controllers are not sorted. I have 100+ view controllers in my storyboard, and it takes a while to locate the appropriate view controller, if I forgot the exact name. Does anyone know how to quickly jump to view controllers in the storyboard from the class name, or sort either the "Document Outline" view or the view controller list on the top alphabetically by name?


Solution

  • If you know the name of the view controller, you can type it in the space at the very bottom of the document outline. It has a small half filled in circle in it. If you don't know the whole name type in something like it and it will list VC's with similar titles. Hope this helps you out.