Setting the Initial View Controller

Although a storyboard can have many view controllers, each storyboard file has exactly one initial view controller. The initial view controller acts as an entry point into the storyboard. You are going to add and configure another view controller to the canvas and set it to be the initial view controller for the storyboard.

Open Main.storyboard. From the object library, drag a View Controller onto the canvas (Figure 5.3). If you are running out of available space, you can Control-click on the background to choose a different zoom level.

Figure 5.3  Adding a view controller to the canvas

Adding a view controller to the canvas

Get iOS Programming: The Big Nerd Ranch Guide 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.