Segues

An empty single-view project starts with one scene. It has an arrow pointing into it, indicating that it’s the initial scene. You can set this option with the “Is Initial View Controller” check box in the Attributes Inspector (4) for the scene’s view controller.

You can add another scene to the storyboard by dropping a view controller on the storyboard, but it sits there, unconnected to the first scene. In fact, building a project in such a state will produce a warning that the scene is unreachable. To correct this problem, you need to either give it an identifier (so it can be created programmatically with UIStoryboard’s instiantiateViewController(withIdentifier:)), or you need to connect it to the first scene.

The obvious way to ...

Get Xcode Treasures now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.